| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 6cef9094d12c24c4c0542b596d63775298ff7cf9..357020d1197c00475554feadb0ec2bd1e4467949 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -1897,6 +1897,16 @@ RUNTIME_FUNCTION(Runtime_DebugAsyncFunctionPromiseCreated) {
|
| return isolate->heap()->undefined_value();
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_DebugPromiseReject) {
|
| + HandleScope scope(isolate);
|
| + DCHECK_EQ(2, args.length());
|
| + CONVERT_ARG_HANDLE_CHECKED(JSPromise, rejected_promise, 0);
|
| + CONVERT_ARG_HANDLE_CHECKED(Object, value, 1);
|
| +
|
| + isolate->debug()->OnPromiseReject(rejected_promise, value);
|
| + return isolate->heap()->undefined_value();
|
| +}
|
| +
|
| RUNTIME_FUNCTION(Runtime_DebugAsyncEventEnqueueRecurring) {
|
| HandleScope scope(isolate);
|
| DCHECK_EQ(2, args.length());
|
|
|