chore: fix v8 deprecation warnings
This commit is contained in:
parent
f8418554a3
commit
e1336d8453
14 changed files with 86 additions and 65 deletions
|
@ -103,7 +103,8 @@ class EventEmitter : public Wrappable<T> {
|
|||
v8::HandleScope handle_scope(isolate());
|
||||
EmitEvent(isolate(), GetWrapper(), name, event, args...);
|
||||
return event->Get(StringToV8(isolate(), "defaultPrevented"))
|
||||
->BooleanValue();
|
||||
->BooleanValue(isolate()->GetCurrentContext())
|
||||
.ToChecked();
|
||||
}
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(EventEmitter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue