| Index: src/debug-debugger.js
|
| diff --git a/src/debug-debugger.js b/src/debug-debugger.js
|
| index d759fe5df118b0d12a3b8110881ce9875f026046..aebef4753fabdc0b3a49093a16bc6ba41c3a67b2 100644
|
| --- a/src/debug-debugger.js
|
| +++ b/src/debug-debugger.js
|
| @@ -42,7 +42,8 @@ Debug.DebugEvent = { Break: 1,
|
| NewFunction: 3,
|
| BeforeCompile: 4,
|
| AfterCompile: 5,
|
| - ScriptCollected: 6 };
|
| + ScriptCollected: 6,
|
| + PendingExceptionInPromise: 7 };
|
|
|
| // Types of exceptions that can be broken upon.
|
| Debug.ExceptionBreak = { Caught : 0,
|
| @@ -1093,15 +1094,16 @@ BreakEvent.prototype.toJSONProtocol = function() {
|
| };
|
|
|
|
|
| -function MakeExceptionEvent(exec_state, exception, uncaught) {
|
| - return new ExceptionEvent(exec_state, exception, uncaught);
|
| +function MakeExceptionEvent(exec_state, exception, uncaught, promise) {
|
| + return new ExceptionEvent(exec_state, exception, uncaught, promise);
|
| }
|
|
|
|
|
| -function ExceptionEvent(exec_state, exception, uncaught) {
|
| +function ExceptionEvent(exec_state, exception, uncaught, promise) {
|
| this.exec_state_ = exec_state;
|
| this.exception_ = exception;
|
| this.uncaught_ = uncaught;
|
| + this.promise_ = promise;
|
| }
|
|
|
|
|
| @@ -1125,6 +1127,11 @@ ExceptionEvent.prototype.uncaught = function() {
|
| };
|
|
|
|
|
| +ExceptionEvent.prototype.promise = function() {
|
| + return this.promise_;
|
| +};
|
| +
|
| +
|
| ExceptionEvent.prototype.func = function() {
|
| return this.exec_state_.frame(0).func();
|
| };
|
|
|