Skip to content

Commit 8cda9c2

Browse files
authored
src: runMicrotasks should check before running too
This is a continuation of nodejs#29434, rewriting the last remaining call to RunMicrotasks.
1 parent 3d841fe commit 8cda9c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_task_queue.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bool RunNextTicksNative(Environment* env) {
5656
}
5757

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

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

0 commit comments

Comments
 (0)