Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 317ac8ecde5de0a764963734b5c71948d6f5c565..6cef9094d12c24c4c0542b596d63775298ff7cf9 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -1893,8 +1893,7 @@ RUNTIME_FUNCTION(Runtime_DebugAsyncFunctionPromiseCreated) { |
JSObject::SetProperty(promise, async_stack_id_symbol, |
handle(Smi::FromInt(id), isolate), STRICT) |
.Assert(); |
- isolate->debug()->OnAsyncTaskEvent(debug::kDebugEnqueueRecurring, id, |
- kDebugAsyncFunction); |
+ isolate->debug()->OnAsyncTaskEvent(debug::kDebugEnqueueAsyncFunction, id); |
return isolate->heap()->undefined_value(); |
} |
@@ -1905,10 +1904,9 @@ RUNTIME_FUNCTION(Runtime_DebugAsyncEventEnqueueRecurring) { |
CONVERT_SMI_ARG_CHECKED(status, 1); |
if (isolate->debug()->is_active()) { |
isolate->debug()->OnAsyncTaskEvent( |
- debug::kDebugEnqueueRecurring, |
- isolate->debug()->NextAsyncTaskId(promise), |
- status == v8::Promise::kFulfilled ? kDebugPromiseResolve |
- : kDebugPromiseReject); |
+ status == v8::Promise::kFulfilled ? debug::kDebugEnqueuePromiseResolve |
+ : debug::kDebugEnqueuePromiseReject, |
+ isolate->debug()->NextAsyncTaskId(promise)); |
} |
return isolate->heap()->undefined_value(); |
} |