Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index da2d880a4941ee88a8521530b5223dda3a1be395..081cfb61a439b0eb0cfc8bf78cfbadd7de8db521 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -368,6 +368,20 @@ void Execution::RunMicrotasks(Isolate* isolate) { |
} |
+void Execution::EnqueueMicrotask(Isolate* isolate, Handle<Object> microtask) { |
+ bool threw = false; |
+ Handle<Object> args[] = { microtask }; |
+ Execution::Call( |
+ isolate, |
+ isolate->enqueue_external_microtask(), |
+ isolate->factory()->undefined_value(), |
+ 1, |
+ args, |
+ &threw); |
+ ASSERT(!threw); |
+} |
+ |
+ |
bool StackGuard::IsStackOverflow() { |
ExecutionAccess access(isolate_); |
return (thread_local_.jslimit_ != kInterruptLimit && |