Skip to content

Commit 3878e1e

Browse files
nornagonBridgeAR
authored andcommitted
src: perform check before running in runMicrotasks()
This is a continuation of #29434, rewriting the last remaining call to RunMicrotasks. PR-URL: #29581 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent e71bdad commit 3878e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_task_queue.cc

+1-1
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)