Skip to content

Commit 50ec55c

Browse files
Jungku Leerichardlau
Jungku Lee
authored andcommitted
src: refactor GetCreationContext calls
PR-URL: #51367 Refs: #51287 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4ce2ecb commit 50ec55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
119119
Local<Context> context;
120120
ContextifyContext* contextify_context = nullptr;
121121
if (args[1]->IsUndefined()) {
122-
context = that->GetCreationContext().ToLocalChecked();
122+
context = that->GetCreationContextChecked();
123123
} else {
124124
CHECK(args[1]->IsObject());
125125
contextify_context = ContextifyContext::ContextFromContextifiedSandbox(

0 commit comments

Comments
 (0)