fix: missing HandleScope in RemoveFromParentChildWindows (#46758)

This commit is contained in:
Shelley Vohr
2025-04-25 14:04:25 +02:00
committed by GitHub
parent 51dbe69e45
commit 1976e935e7

View File

@@ -1161,8 +1161,10 @@ void BaseWindow::RemoveFromParentChildWindows() {
if (parent_window_.IsEmpty())
return;
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
v8::HandleScope handle_scope(isolate);
gin::Handle<BaseWindow> parent;
if (!gin::ConvertFromV8(isolate(), GetParentWindow(), &parent) ||
if (!gin::ConvertFromV8(isolate, GetParentWindow(), &parent) ||
parent.IsEmpty()) {
return;
}