fix: add handle scope in dialog's promise callback (#22658)

This commit is contained in:
Cheng Zhao 2020-03-13 03:17:47 +09:00 committed by GitHub
parent 4b9f2bc725
commit c2327b15ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ void ResolvePromiseObject(gin_helper::Promise<gin_helper::Dictionary> promise,
int result,
bool checkbox_checked) {
v8::Isolate* isolate = promise.isolate();
v8::HandleScope handle_scope(isolate);
gin_helper::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
dict.Set("response", result);