chore: migrate to v8::Object::SetPrototypeV2() (#43535)
chore: migrate to v8::Object::SetPrototypeV2().
Xref: 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));
|
.ToLocal(&func_prototype));
|
||||||
|
|
||||||
CHECK(func_prototype.As<v8::Object>()
|
CHECK(func_prototype.As<v8::Object>()
|
||||||
->SetPrototype(context, eventemitter_prototype)
|
->SetPrototypeV2(context, eventemitter_prototype)
|
||||||
.ToChecked());
|
.ToChecked());
|
||||||
|
|
||||||
data->SetFunctionTemplate(&kWrapperInfo, tmpl);
|
data->SetFunctionTemplate(&kWrapperInfo, tmpl);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue