fix: missing HandleScope in ResetBrowserViews (#28266)

This commit is contained in:
Shelley Vohr 2021-03-18 18:24:55 -07:00 committed by GitHub
parent 502d4c19ce
commit a68d43ce8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1112,6 +1112,8 @@ int32_t BaseWindow::GetID() const {
}
void BaseWindow::ResetBrowserViews() {
v8::HandleScope scope(isolate());
for (auto& item : browser_views_) {
gin::Handle<BrowserView> browser_view;
if (gin::ConvertFromV8(isolate(),