refactor: avoid deprecated v8::Context::GetIsolate()
calls (pt 1) (#47760)
* refactor: avoid redundant GetIsolate() calls in NodeBindings::CreateEnvironment() Xref: https://chromium-review.googlesource.com/c/v8/v8/+/6563615 * refactor: use v8::Isolate::GetCurrent() in Initialize() methods * refactor: add v8::Isolate* arg to NodeBindings::CreateEnvironment() * fixup! refactor: use v8::Isolate::GetCurrent() in Initialize() methods * refactor: add v8::Isolate* arg to RendererClientBase::DidCreateScriptContext() * fixup! refactor: add v8::Isolate* arg to NodeBindings::CreateEnvironment() * fixup! fixup! refactor: use v8::Isolate::GetCurrent() in Initialize() methods refactor: prefer JavascriptEnvironment::GetIsolate() in the browser layer
This commit is contained in:
parent
2f4a070c39
commit
39cca586f6
61 changed files with 136 additions and 110 deletions
|
@ -29,7 +29,8 @@ class ElectronRendererClient : public RendererClientBase {
|
|||
ElectronRendererClient& operator=(const ElectronRendererClient&) = delete;
|
||||
|
||||
// electron::RendererClientBase:
|
||||
void DidCreateScriptContext(v8::Local<v8::Context> context,
|
||||
void DidCreateScriptContext(v8::Isolate* isolate,
|
||||
v8::Local<v8::Context> context,
|
||||
content::RenderFrame* render_frame) override;
|
||||
void WillReleaseScriptContext(v8::Local<v8::Context> context,
|
||||
content::RenderFrame* render_frame) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue