Skip to content

Commit

Permalink
src: runMicrotasks should check before running too
Browse files Browse the repository at this point in the history
This is a continuation of nodejs#29434, rewriting the last remaining call to RunMicrotasks.
  • Loading branch information
nornagon authored Sep 16, 2019
1 parent 3d841fe commit 8cda9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_task_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bool RunNextTicksNative(Environment* env) {
}

static void RunMicrotasks(const FunctionCallbackInfo<Value>& args) {
args.GetIsolate()->RunMicrotasks();
MicrotasksScope::PerformCheckpoint(args.GetIsolate());
}

static void SetTickCallback(const FunctionCallbackInfo<Value>& args) {
Expand Down

0 comments on commit 8cda9c2

Please sign in to comment.