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/base_object-inl.h | |
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/base_object-inl.h')
-rw-r--r-- | src/base_object-inl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base_object-inl.h b/src/base_object-inl.h index b9f99a03ddf..ff3610c60a8 100644 --- a/src/base_object-inl.h +++ b/src/base_object-inl.h @@ -83,7 +83,8 @@ v8::Local<v8::Object> BaseObject::object() const { v8::Local<v8::Object> BaseObject::object(v8::Isolate* isolate) const { v8::Local<v8::Object> handle = object(); - DCHECK_EQ(handle->CreationContext()->GetIsolate(), isolate); + DCHECK_EQ(handle->GetCreationContext().ToLocalChecked()->GetIsolate(), + isolate); DCHECK_EQ(env()->isolate(), isolate); return handle; |