Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 5c31eb2f204692d3d081c54d7c07832c34cd0328..1409dad7c5e1f2b1fb2bc1b649fb4db5b7f23878 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -1899,10 +1899,12 @@ RUNTIME_FUNCTION(Runtime_DebugNextMicrotaskId) { |
RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { |
DCHECK(args.length() == 3); |
HandleScope scope(isolate); |
- CONVERT_ARG_HANDLE_CHECKED(String, type, 0); |
- CONVERT_ARG_HANDLE_CHECKED(Object, id, 1); |
- CONVERT_ARG_HANDLE_CHECKED(String, name, 2); |
- isolate->debug()->OnAsyncTaskEvent(type, id, name); |
+ CONVERT_SMI_ARG_CHECKED(type, 0); |
+ CONVERT_SMI_ARG_CHECKED(id, 1); |
+ CONVERT_SMI_ARG_CHECKED(name, 2); |
+ isolate->debug()->OnAsyncTaskEvent(static_cast<PromiseDebugActionType>(type), |
+ id, |
+ static_cast<PromiseDebugActionName>(name)); |
return isolate->heap()->undefined_value(); |
} |