Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 306042f4ea65601e0e4ed3c5fe57ee08937be87c..ba21345aefd65b99f04220f00b46d78e5e17194a 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -14685,7 +14685,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotaskPending) { |
RUNTIME_FUNCTION(MaybeObject*, Runtime_RunMicrotasks) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 0); |
- Execution::RunMicrotasks(isolate); |
+ if (isolate->microtask_pending()) |
+ Execution::RunMicrotasks(isolate); |
return isolate->heap()->undefined_value(); |
} |