Index: src/debug/debug.js |
diff --git a/src/debug/debug.js b/src/debug/debug.js |
index c17a20a512a655e95e788f3141a453523e8828b8..512bedb69fbffd0788ad3ea3180695653f77c6d5 100644 |
--- a/src/debug/debug.js |
+++ b/src/debug/debug.js |
@@ -1088,26 +1088,14 @@ function MakeScriptObject_(script, include_source) { |
} |
-function PromiseDebugActionNameToString(name) { |
- switch (name) { |
- case kAsyncFunction: return "async function"; |
- case kPromiseResolve: return "Promise.resolve"; |
- case kPromiseReject: return "Promise.reject"; |
- case kPromiseResolveThenableJob: return "PromiseResolveThenableJob"; |
- case kDebugPromiseCollected: return "Promise collected"; |
- } |
-} |
- |
-function MakeAsyncTaskEvent(type, id, name) { |
- return new AsyncTaskEvent(type, |
- id, PromiseDebugActionNameToString(name)); |
+function MakeAsyncTaskEvent(type, id) { |
+ return new AsyncTaskEvent(type, id); |
} |
-function AsyncTaskEvent(type, id, name) { |
+function AsyncTaskEvent(type, id) { |
this.type_ = type; |
this.id_ = id; |
- this.name_ = name; |
} |
@@ -1116,11 +1104,6 @@ AsyncTaskEvent.prototype.type = function() { |
} |
-AsyncTaskEvent.prototype.name = function() { |
- return this.name_; |
-} |
- |
- |
AsyncTaskEvent.prototype.id = function() { |
return this.id_; |
} |