From 8b55ccbebbf932676084babdfb37d04591af4fe6 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Mon, 16 Sep 2019 13:27:39 -0400 Subject: [PATCH] src: perform check before running in runMicrotasks() This is a continuation of https://github.com/nodejs/node/pull/29434, rewriting the last remaining call to RunMicrotasks. PR-URL: https://github.com/nodejs/node/pull/29581 Reviewed-By: James M Snell Reviewed-By: Gus Caplan Reviewed-By: Shelley Vohr Reviewed-By: Minwoo Jung Reviewed-By: David Carlier Reviewed-By: Ruben Bridgewater --- src/node_task_queue.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {