Index: src/debug-debugger.js |
diff --git a/src/debug-debugger.js b/src/debug-debugger.js |
index 8afac2e20af6c648b15a03d18c15c698ef5042ca..3a35c98427506fe2bf8b0f980aeca566338b9a44 100644 |
--- a/src/debug-debugger.js |
+++ b/src/debug-debugger.js |
@@ -20,7 +20,8 @@ Debug.DebugEvent = { Break: 1, |
BeforeCompile: 4, |
AfterCompile: 5, |
CompileError: 6, |
- PromiseEvent: 7 }; |
+ PromiseEvent: 7, |
+ AsyncTaskEvent: 8 }; |
// Types of exceptions that can be broken upon. |
Debug.ExceptionBreak = { Caught : 0, |
@@ -1226,6 +1227,33 @@ NewPromiseEvent.prototype.resolver = function() { |
} |
+function MakeAsyncTaskEvent(event_data) { |
+ return new AsyncTaskEvent(event_data); |
+} |
+ |
+ |
+function AsyncTaskEvent(event_data) { |
+ this.type_ = event_data.type; |
+ this.name_ = event_data.name; |
+ this.id_ = event_data.id; |
+} |
+ |
+ |
+AsyncTaskEvent.prototype.type = function() { |
+ return this.type_; |
+} |
+ |
+ |
+AsyncTaskEvent.prototype.name = function() { |
+ return this.name_; |
+} |
+ |
+ |
+AsyncTaskEvent.prototype.id = function() { |
+ return this.id_; |
+} |
+ |
+ |
function DebugCommandProcessor(exec_state, opt_is_running) { |
this.exec_state_ = exec_state; |
this.running_ = opt_is_running || false; |