Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 553f45fa0dcafc77fd62454009b25cda828e620f..69e354e9ae4f0b93861774ea12fe6c516b811980 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -2781,10 +2781,11 @@ RUNTIME_FUNCTION(Runtime_DebugPrepareStepInIfStepping) { |
RUNTIME_FUNCTION(Runtime_DebugPushPromise) { |
- DCHECK(args.length() == 1); |
+ DCHECK(args.length() == 2); |
HandleScope scope(isolate); |
CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); |
- isolate->PushPromise(promise); |
+ CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 1); |
+ isolate->PushPromise(promise, function); |
return isolate->heap()->undefined_value(); |
} |