summaryrefslogtreecommitdiff
path: root/src/node_task_queue.cc
diff options
context:
space:
mode:
authorJeremy Apthorp <jeremya@chromium.org>2019-09-16 13:27:39 -0400
committerRich Trott <rtrott@gmail.com>2019-09-22 19:09:48 -0700
commit4ef3ccbbe09d2f0cde8da078f9d2543332b152d2 (patch)
tree7fa11ec8e7cb3c0aac57411a11fa03b15f26a16c /src/node_task_queue.cc
parentd398b8f02be73f2846a62080ebfbd65ede0c7d50 (diff)
downloadandroid-node-v8-4ef3ccbbe09d2f0cde8da078f9d2543332b152d2.tar.gz
android-node-v8-4ef3ccbbe09d2f0cde8da078f9d2543332b152d2.tar.bz2
android-node-v8-4ef3ccbbe09d2f0cde8da078f9d2543332b152d2.zip
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 <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_task_queue.cc')
-rw-r--r--src/node_task_queue.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_task_queue.cc b/src/node_task_queue.cc
index b4e8c1de92..3b00cbc600 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<Value>& args) {
- args.GetIsolate()->RunMicrotasks();
+ MicrotasksScope::PerformCheckpoint(args.GetIsolate());
}
static void SetTickCallback(const FunctionCallbackInfo<Value>& args) {