refactor: ginify WebContents (#24651)

This commit is contained in:
Jeremy Rose 2020-07-30 09:17:57 -07:00 committed by GitHub
parent e7fc19c98e
commit b5cd9ce0b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 156 additions and 67 deletions

View file

@ -44,9 +44,7 @@ class EventEmitterMixin {
v8::Local<v8::Object> wrapper;
if (!static_cast<T*>(this)->GetWrapper(isolate).ToLocal(&wrapper))
return false;
v8::Local<v8::Object> event =
internal::CreateEvent(isolate, wrapper, custom_event);
return EmitWithEvent(isolate, wrapper, name, event,
return EmitWithEvent(isolate, wrapper, name, custom_event,
std::forward<Args>(args)...);
}