diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-02-28 19:45:24 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-03-15 17:56:25 +0300 |
commit | 8e8dea36cc98050371bdc2a3c462399b78a6c0f2 (patch) | |
tree | ad54fa524a95351ffb642041b47ab3c7ae09b509 /src/node_worker.cc | |
parent | b1c1c4695ca246e8421341d7d7616100a4e91791 (diff) |
src: use non-deprecated GetCreationContext from V8
Fixes: https://github.com/nodejs/node-v8/issues/193
PR-URL: https://github.com/nodejs/node/pull/37587
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r-- | src/node_worker.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc index c1a0c6668bf..15dea5c501b 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -790,7 +790,8 @@ void GetEnvMessagePort(const FunctionCallbackInfo<Value>& args) { Local<Object> port = env->message_port(); CHECK_IMPLIES(!env->is_main_thread(), !port.IsEmpty()); if (!port.IsEmpty()) { - CHECK_EQ(port->CreationContext()->GetIsolate(), args.GetIsolate()); + CHECK_EQ(port->GetCreationContext().ToLocalChecked()->GetIsolate(), + args.GetIsolate()); args.GetReturnValue().Set(port); } } |