diff --git a/shell/common/gin_helper/event_emitter_template.cc b/shell/common/gin_helper/event_emitter_template.cc index bf5f7a08d62f..afc9fe168288 100644 --- a/shell/common/gin_helper/event_emitter_template.cc +++ b/shell/common/gin_helper/event_emitter_template.cc @@ -32,7 +32,7 @@ v8::Local GetEventEmitterTemplate(v8::Isolate* isolate) { .ToLocal(&func_prototype)); CHECK(func_prototype.As() - ->SetPrototype(context, eventemitter_prototype) + ->SetPrototypeV2(context, eventemitter_prototype) .ToChecked()); data->SetFunctionTemplate(&kWrapperInfo, tmpl);