From b271cc5b166a3d5ca238c536ff35e7485dc69aef 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 742f3960c881b9..e6018e8af7fede 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -120,7 +120,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(