Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index 675c3e03a05..aee97095a43 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -492,7 +492,7 @@ void InitWorker(Local<Object> target,
Local<String> workerString =
FIXED_ONE_BYTE_STRING(env->isolate(), "Worker");
w->SetClassName(workerString);
- target->Set(workerString, w->GetFunction());
+ target->Set(workerString, w->GetFunction(env->context()).ToLocalChecked());
}
env->SetMethod(target, "getEnvMessagePort", GetEnvMessagePort);