fix: remove catch-all HandleScope (#22531)

This commit is contained in:
Jeremy Apthorp
2020-03-10 18:16:58 -07:00
committed by GitHub
parent 4bca5205bb
commit 19314d3caf
21 changed files with 131 additions and 75 deletions

View File

@@ -214,6 +214,7 @@ void Menu::OnMenuWillClose() {
}
void Menu::OnMenuWillShow() {
v8::HandleScope scope(isolate());
g_menus[weak_map_id()] = v8::Global<v8::Object>(isolate(), GetWrapper());
Emit("menu-will-show");
}