Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index 979641a9de53c1cd7ebfce9be9bf069699b0fe9f..8fa26a27c242ad1192095f31a10c94ab61d26129 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -354,6 +354,20 @@ Handle<Object> Execution::TryGetConstructorDelegate( |
} |
+void Execution::RunMicrotasks(Isolate* isolate) { |
+ ASSERT(isolate->microtask_pending()); |
+ bool threw = false; |
+ Execution::Call( |
+ isolate, |
+ isolate->run_microtasks(), |
+ isolate->factory()->undefined_value(), |
+ 0, |
+ NULL, |
+ &threw); |
+ ASSERT(!threw); |
+} |
+ |
+ |
bool StackGuard::IsStackOverflow() { |
ExecutionAccess access(isolate_); |
return (thread_local_.jslimit_ != kInterruptLimit && |