mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -56,7 +56,8 @@ void ServiceWorkerData::Message(bool internal,
|
||||
|
||||
v8::Local<v8::Value> args = gin::ConvertToV8(isolate, arguments);
|
||||
|
||||
ipc_native::EmitIPCEvent(preload_context, internal, channel, {}, args);
|
||||
ipc_native::EmitIPCEvent(isolate, preload_context, internal, channel, {},
|
||||
args);
|
||||
}
|
||||
|
||||
void ServiceWorkerData::ReceivePostMessage(const std::string& channel,
|
||||
|
||||
Reference in New Issue
Block a user