зеркало из https://github.com/electron/electron.git
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:
Родитель
8ae5aacc8c
Коммит
0467790aee
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче