diff options
Diffstat (limited to 'src/process_wrap.cc')
-rw-r--r-- | src/process_wrap.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process_wrap.cc b/src/process_wrap.cc index e072b10e3fa..1daa437b296 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -64,7 +64,8 @@ class ProcessWrap : public HandleWrap { env->SetProtoMethod(constructor, "spawn", Spawn); env->SetProtoMethod(constructor, "kill", Kill); - target->Set(processString, constructor->GetFunction()); + target->Set(processString, + constructor->GetFunction(context).ToLocalChecked()); } void MemoryInfo(MemoryTracker* tracker) const override { |