summaryrefslogtreecommitdiff
path: root/src/module_wrap.cc
diff options
context:
space:
mode:
authorAndreas Haas <ahaas@google.com>2018-09-21 13:13:35 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-09-24 05:44:28 +0200
commit7dde560beb736e82b7867130a2d5824544122a60 (patch)
treec34d8cdc7be51ceee11ed3160e49acd1270319de /src/module_wrap.cc
parenta0c1326257b9679b056d8611ccdee2d6757b0bf0 (diff)
downloadnode-new-7dde560beb736e82b7867130a2d5824544122a60.tar.gz
src: replace deprecated uses of FunctionTemplate::GetFunction
PR-URL: https://github.com/nodejs/node/pull/22993 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r--src/module_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index d751b16de0..1ef22b270d 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -801,7 +801,8 @@ void ModuleWrap::Initialize(Local<Object> target,
env->SetProtoMethodNoSideEffect(tpl, "getStaticDependencySpecifiers",
GetStaticDependencySpecifiers);
- target->Set(FIXED_ONE_BYTE_STRING(isolate, "ModuleWrap"), tpl->GetFunction());
+ target->Set(FIXED_ONE_BYTE_STRING(isolate, "ModuleWrap"),
+ tpl->GetFunction(context).ToLocalChecked());
env->SetMethod(target, "resolve", Resolve);
env->SetMethod(target,
"setImportModuleDynamicallyCallback",