Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 9c5dd0cd73ec7be83eecb9cf5242ead0845da11b..ca28c17f93cda74dfba4be532961ea9084ae7149 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -27,6 +27,7 @@ |
#include "src/base/debug/stack_trace.h" |
#include "src/base/logging.h" |
#include "src/base/platform/platform.h" |
+#include "src/base/platform/time.h" |
#include "src/base/sys-info.h" |
#include "src/basic-block-profiler.h" |
#include "src/interpreter/interpreter.h" |
@@ -2595,6 +2596,8 @@ void Shell::CollectGarbage(Isolate* isolate) { |
void Shell::EmptyMessageQueues(Isolate* isolate) { |
if (!i::FLAG_verify_predictable) { |
while (v8::platform::PumpMessageLoop(g_platform, isolate)) continue; |
+ v8::platform::RunIdleTasks(g_platform, isolate, |
+ 50.0 / base::Time::kMillisecondsPerSecond); |
} |
} |