fix: wrap EmitWarning with HandleScope (#23667)
This commit is contained in:
parent
84888bb1f1
commit
0a481242f0
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue