Browse Source

fix: wrap EmitWarning with HandleScope (#23667)

Jeremy Apthorp 4 years ago
parent
commit
0a481242f0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shell/common/process_util.cc

+ 1 - 0
shell/common/process_util.cc

@@ -12,6 +12,7 @@ namespace electron {
 void EmitWarning(node::Environment* env,
                  const std::string& warning_msg,
                  const std::string& warning_type) {
+  v8::HandleScope scope(env->isolate());
   gin::Dictionary process(env->isolate(), env->process_object());
 
   base::RepeatingCallback<void(base::StringPiece, base::StringPiece,