diff --git a/src/module_wrap.cc b/src/module_wrap.cc index f4c123a0834201..f18f0dbccc490f 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -119,7 +119,7 @@ void ModuleWrap::New(const FunctionCallbackInfo& args) { Local context; ContextifyContext* contextify_context = nullptr; if (args[1]->IsUndefined()) { - context = that->GetCreationContext().ToLocalChecked(); + context = that->GetCreationContextChecked(); } else { CHECK(args[1]->IsObject()); contextify_context = ContextifyContext::ContextFromContextifiedSandbox(