fix: wrap EmitWarning with HandleScope (#23667)

This commit is contained in:
Jeremy Apthorp
2020-05-20 09:44:27 -07:00
committed by GitHub
parent 84888bb1f1
commit 0a481242f0

View File

@@ -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,