From 18774b332f1a7306e838ca50416d6e3607a9ef29 Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Thu, 4 Jan 2024 22:57:05 +0900 Subject: [PATCH] src: refactor `GetCreationContext` calls --- src/module_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(