From 46c3ac0208b9aa91d9b73753a8dfaeca051b6edc Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Mon, 8 Jan 2024 01:29:16 +0900 Subject: [PATCH] src: refactor `GetCreationContext` calls PR-URL: https://github.com/nodejs/node/pull/51367 Refs: https://github.com/nodejs/node/pull/51287 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Chengzhong Wu Reviewed-By: James M Snell --- 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(