From aeae43df13a0cf5ac75ef344eeff3d79cd6fe0c3 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 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(