| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 9d317ca535f9630d97ccf08d920adee1e4284ca4..0b7d75bbe644a2eb79544395c5df2f3cc0aea9bd 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -14325,6 +14325,18 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Abort) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_AbortJS) {
|
| + HandleScope scope(isolate);
|
| + ASSERT(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(String, message, 0);
|
| + OS::PrintError("abort: %s\n", *message->ToCString());
|
| + isolate->PrintStack(stderr);
|
| + OS::Abort();
|
| + UNREACHABLE();
|
| + return NULL;
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_FlattenString) {
|
| HandleScope scope(isolate);
|
| ASSERT(args.length() == 1);
|
| @@ -14617,11 +14629,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetIsObserved) {
|
| }
|
|
|
|
|
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetObserverDeliveryPending) {
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotasksPending) {
|
| SealHandleScope shs(isolate);
|
| - ASSERT(args.length() == 0);
|
| - isolate->set_observer_delivery_pending(true);
|
| - return isolate->heap()->undefined_value();
|
| + ASSERT(args.length() == 1);
|
| + CONVERT_BOOLEAN_ARG_CHECKED(new_state, 0);
|
| + bool old_state = isolate->microtasks_pending();
|
| + isolate->set_microtasks_pending(new_state);
|
| + return isolate->heap()->ToBoolean(old_state);
|
| }
|
|
|
|
|
|
|