diff --git a/src/node_task_queue.cc b/src/node_task_queue.cc index b4e8c1de928bd9..3b00cbc600fcbd 100644 --- a/src/node_task_queue.cc +++ b/src/node_task_queue.cc @@ -56,7 +56,7 @@ bool RunNextTicksNative(Environment* env) { } static void RunMicrotasks(const FunctionCallbackInfo& args) { - args.GetIsolate()->RunMicrotasks(); + MicrotasksScope::PerformCheckpoint(args.GetIsolate()); } static void SetTickCallback(const FunctionCallbackInfo& args) {