chore: fix v8 deprecation warnings
This commit is contained in:
parent
f8418554a3
commit
e1336d8453
14 changed files with 86 additions and 65 deletions
|
@ -359,7 +359,7 @@ void DestroyGlobalHandle(v8::Isolate* isolate,
|
|||
if (!global_handle.IsEmpty()) {
|
||||
v8::Local<v8::Value> local_handle = global_handle.Get(isolate);
|
||||
if (local_handle->IsObject()) {
|
||||
v8::Local<v8::Object> object = local_handle->ToObject();
|
||||
v8::Local<v8::Object> object = local_handle->ToObject(isolate);
|
||||
void* ptr = object->GetAlignedPointerFromInternalField(0);
|
||||
if (!ptr)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue