chore: use v8::Local<>, not v8::Handle<> (#43036)
v8::Handle is an alias for v8::Local that "is kept around for historical reasons" and is disabled when V8_IMMINENT_DEPRECATION_WARNING is defined Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
0a3ec0899d
commit
d9de48e9c1
15 changed files with 34 additions and 34 deletions
|
@ -81,7 +81,7 @@ void ElectronRenderFrameObserver::DidClearWindowObject() {
|
|||
!web_frame->IsOnInitialEmptyDocument()) {
|
||||
v8::Isolate* isolate = web_frame->GetAgentGroupScheduler()->Isolate();
|
||||
v8::HandleScope handle_scope{isolate};
|
||||
v8::Handle<v8::Context> context = web_frame->MainWorldScriptContext();
|
||||
v8::Local<v8::Context> context = web_frame->MainWorldScriptContext();
|
||||
v8::MicrotasksScope microtasks_scope(
|
||||
isolate, context->GetMicrotaskQueue(),
|
||||
v8::MicrotasksScope::kDoNotRunMicrotasks);
|
||||
|
@ -94,7 +94,7 @@ void ElectronRenderFrameObserver::DidClearWindowObject() {
|
|||
}
|
||||
|
||||
void ElectronRenderFrameObserver::DidInstallConditionalFeatures(
|
||||
v8::Handle<v8::Context> context,
|
||||
v8::Local<v8::Context> context,
|
||||
int world_id) {
|
||||
// When a child window is created with window.open, its WebPreferences will
|
||||
// be copied from its parent, and Chromium will initialize JS context in it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue