Index: src/debug/debug.js |
diff --git a/src/debug/debug.js b/src/debug/debug.js |
index 110ce9590fe20cfd567409a5572159b7e8aaecdb..c17a20a512a655e95e788f3141a453523e8828b8 100644 |
--- a/src/debug/debug.js |
+++ b/src/debug/debug.js |
@@ -1094,21 +1094,12 @@ function PromiseDebugActionNameToString(name) { |
case kPromiseResolve: return "Promise.resolve"; |
case kPromiseReject: return "Promise.reject"; |
case kPromiseResolveThenableJob: return "PromiseResolveThenableJob"; |
- } |
-} |
- |
-function PromiseDebugActionTypeToString(type) { |
- switch (type) { |
- case kEnqueue: return "enqueue"; |
- case kEnqueueRecurring: return "enqueueRecurring"; |
- case kCancel: return "cancel"; |
- case kWillHandle: return "willHandle"; |
- case kDidHandle: return "didHandle"; |
+ case kDebugPromiseCollected: return "Promise collected"; |
} |
} |
function MakeAsyncTaskEvent(type, id, name) { |
- return new AsyncTaskEvent(PromiseDebugActionTypeToString(type), |
+ return new AsyncTaskEvent(type, |
id, PromiseDebugActionNameToString(name)); |
} |