OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 GlobalObjectCleared: "GlobalObjectCleared", | 88 GlobalObjectCleared: "GlobalObjectCleared", |
89 CallFrameSelected: "CallFrameSelected", | 89 CallFrameSelected: "CallFrameSelected", |
90 ConsoleCommandEvaluatedInSelectedCallFrame: "ConsoleCommandEvaluatedInSelect
edCallFrame", | 90 ConsoleCommandEvaluatedInSelectedCallFrame: "ConsoleCommandEvaluatedInSelect
edCallFrame", |
91 } | 91 } |
92 | 92 |
93 WebInspector.DebuggerModel.BreakReason = { | 93 WebInspector.DebuggerModel.BreakReason = { |
94 DOM: "DOM", | 94 DOM: "DOM", |
95 EventListener: "EventListener", | 95 EventListener: "EventListener", |
96 XHR: "XHR", | 96 XHR: "XHR", |
97 Exception: "exception", | 97 Exception: "exception", |
| 98 PromiseRejection: "promiseRejection", |
98 Assert: "assert", | 99 Assert: "assert", |
99 CSPViolation: "CSPViolation", | 100 CSPViolation: "CSPViolation", |
100 DebugCommand: "debugCommand" | 101 DebugCommand: "debugCommand" |
101 } | 102 } |
102 | 103 |
103 WebInspector.DebuggerModel.prototype = { | 104 WebInspector.DebuggerModel.prototype = { |
104 /** | 105 /** |
105 * @return {boolean} | 106 * @return {boolean} |
106 */ | 107 */ |
107 debuggerEnabled: function() | 108 debuggerEnabled: function() |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 this.breakpointIds = breakpointIds; | 1091 this.breakpointIds = breakpointIds; |
1091 this.asyncStackTrace = WebInspector.DebuggerModel.StackTrace.fromPayload(tar
get, asyncStackTrace, true); | 1092 this.asyncStackTrace = WebInspector.DebuggerModel.StackTrace.fromPayload(tar
get, asyncStackTrace, true); |
1092 } | 1093 } |
1093 | 1094 |
1094 WebInspector.DebuggerPausedDetails.prototype = { | 1095 WebInspector.DebuggerPausedDetails.prototype = { |
1095 /** | 1096 /** |
1096 * @return {?WebInspector.RemoteObject} | 1097 * @return {?WebInspector.RemoteObject} |
1097 */ | 1098 */ |
1098 exception: function() | 1099 exception: function() |
1099 { | 1100 { |
1100 if (this.reason !== WebInspector.DebuggerModel.BreakReason.Exception) | 1101 if (this.reason !== WebInspector.DebuggerModel.BreakReason.Exception &&
this.reason !== WebInspector.DebuggerModel.BreakReason.PromiseRejection) |
1101 return null; | 1102 return null; |
1102 return this.target().runtimeModel.createRemoteObject(/** @type {!Runtime
Agent.RemoteObject} */(this.auxData)); | 1103 return this.target().runtimeModel.createRemoteObject(/** @type {!Runtime
Agent.RemoteObject} */(this.auxData)); |
1103 }, | 1104 }, |
1104 | 1105 |
1105 __proto__: WebInspector.SDKObject.prototype | 1106 __proto__: WebInspector.SDKObject.prototype |
1106 } | 1107 } |
1107 | 1108 |
1108 /** | 1109 /** |
1109 * @type {!WebInspector.DebuggerModel} | 1110 * @type {!WebInspector.DebuggerModel} |
1110 */ | 1111 */ |
1111 WebInspector.debuggerModel; | 1112 WebInspector.debuggerModel; |
OLD | NEW |