chore: migrate to v8::Object::SetPrototypeV2() (#43535)
chore: migrate to v8::Object::SetPrototypeV2(). Xref: https://chromium-review.googlesource.com/c/v8/v8/+/5600627 [api] Mark v8::Object::GetPrototype() for deprecation Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
8ae5aacc8c
commit
0467790aee
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ v8::Local<v8::FunctionTemplate> GetEventEmitterTemplate(v8::Isolate* isolate) {
|
|||
.ToLocal(&func_prototype));
|
||||
|
||||
CHECK(func_prototype.As<v8::Object>()
|
||||
->SetPrototype(context, eventemitter_prototype)
|
||||
->SetPrototypeV2(context, eventemitter_prototype)
|
||||
.ToChecked());
|
||||
|
||||
data->SetFunctionTemplate(&kWrapperInfo, tmpl);
|
||||
|
|
Loading…
Reference in a new issue