refactor: avoid deprecated v8::Context::GetIsolate()
calls (pt 2) (#47879)
* refactor: add a v8::Isolate* arg to Constructible::GetConstructor() * refactor: add a v8::Isolate* arg to NodeBindings::Initialize() This is needed for the GetConstructor() call * refactor: avoid v8::Context::GetIsolate() call in GetIpcObject() by taking it as an arg * refactor: avoid v8::Context::GetIsolate() call in ipc_native::EmitIPCEvent() by taking it as an arg
This commit is contained in:
parent
084c6ef549
commit
2255bb620a
18 changed files with 42 additions and 36 deletions
|
@ -447,7 +447,7 @@ void Initialize(v8::Local<v8::Object> exports,
|
|||
void* priv) {
|
||||
v8::Isolate* const isolate = electron::JavascriptEnvironment::GetIsolate();
|
||||
gin::Dictionary dict{isolate, exports};
|
||||
dict.Set("Tray", Tray::GetConstructor(context));
|
||||
dict.Set("Tray", Tray::GetConstructor(isolate, context));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue