Skip to content

Commit

Permalink
fix: use Node's microtasks policy in node_main.cc
Browse files Browse the repository at this point in the history
Fixes #21515.
  • Loading branch information
ckerr committed Apr 17, 2020
1 parent 8b2e863 commit d19825f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/app/node_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ int NodeMain(int argc, char* argv[]) {
JavascriptEnvironment gin_env(loop);

v8::Isolate* isolate = gin_env.isolate();
isolate->SetMicrotasksPolicy(v8::MicrotasksPolicy::kExplicit);
v8::Isolate::Scope isolate_scope(isolate);
v8::Locker locker(isolate);
node::Environment* env = nullptr;
Expand Down

0 comments on commit d19825f

Please sign in to comment.