| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index b9a09c1def8d39016687e917b8405f3f39edea1d..0d4af7e90af2c813186e0add5ad16d12f93b5f9f 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -14596,6 +14596,21 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotaskPending) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_RunMicrotasks) {
|
| + HandleScope scope(isolate);
|
| + ASSERT(args.length() == 0);
|
| + Execution::RunMicrotasks(isolate);
|
| + return isolate->heap()->undefined_value();
|
| +}
|
| +
|
| +
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_GetMicrotaskState) {
|
| + SealHandleScope shs(isolate);
|
| + ASSERT(args.length() == 0);
|
| + return isolate->heap()->microtask_state();
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_GetObservationState) {
|
| SealHandleScope shs(isolate);
|
| ASSERT(args.length() == 0);
|
|
|