diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 9135dd1de08839..ec46a5c3281cc9 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -121,7 +121,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(