Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 0a1781139073005412685f47049a5e73b220e478..d24a450cbfaa0d18a2a19377d20f244feb2a4f94 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -1896,6 +1896,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()); |