diff options
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r-- | src/node_perf.cc | 2 |
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); |