Skip to content

Commit

Permalink
manually create handle_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jan 11, 2019
1 parent 25ab6bd commit e7f947b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atom/common/api/atom_api_shell.cc
Expand Up @@ -79,6 +79,9 @@ v8::Local<v8::Promise> OpenExternal(
const GURL& url,
#endif
mate::Arguments* args) {

v8::Locker locker(args->isolate());
v8::HandleScope handle_scope(args->isolate());
scoped_refptr<atom::util::Promise> promise =
new atom::util::Promise(args->isolate());

Expand Down

0 comments on commit e7f947b

Please sign in to comment.