Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 10835256ccc9d2e021de96cd5a9c8917c7f911ed..29158da9238a90ebbdf33eca8c46e67f50126456 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -2968,6 +2968,8 @@ void Isolate::RunMicrotasks() { |
void Isolate::RunMicrotasksInternal() { |
+ if (!pending_microtask_count()) return; |
+ TRACE_EVENT0("v8.execute", "RunMicrotasks"); |
while (pending_microtask_count() > 0) { |
HandleScope scope(this); |
int num_tasks = pending_microtask_count(); |