summaryrefslogtreecommitdiff
path: root/src/node_perf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r--src/node_perf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc
index da6d571f20..1e1fe13d93 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -405,7 +405,7 @@ void Initialize(Local<Object> target,
Local<FunctionTemplate> pe = FunctionTemplate::New(isolate);
pe->SetClassName(performanceEntryString);
- Local<Function> fn = pe->GetFunction();
+ Local<Function> fn = pe->GetFunction(context).ToLocalChecked();
target->Set(context, performanceEntryString, fn).FromJust();
env->set_performance_entry_template(fn);