| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return result; | 74 return result; |
| 75 } | 75 } |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * @param {?SDK.Target} target | 78 * @param {?SDK.Target} target |
| 79 * @return {?SDK.DebuggerModel} | 79 * @return {?SDK.DebuggerModel} |
| 80 */ | 80 */ |
| 81 static fromTarget(target) { | 81 static fromTarget(target) { |
| 82 if (!target || !target.hasJSCapability()) | 82 if (!target || !target.hasJSCapability()) |
| 83 return null; | 83 return null; |
| 84 return /** @type {?SDK.DebuggerModel} */ (target.model(SDK.DebuggerModel)); | 84 return target.model(SDK.DebuggerModel); |
| 85 } | 85 } |
| 86 | 86 |
| 87 /** | 87 /** |
| 88 * @return {boolean} | 88 * @return {boolean} |
| 89 */ | 89 */ |
| 90 debuggerEnabled() { | 90 debuggerEnabled() { |
| 91 return !!this._debuggerEnabled; | 91 return !!this._debuggerEnabled; |
| 92 } | 92 } |
| 93 | 93 |
| 94 /** | 94 /** |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 stack.callFrames.shift(); | 1313 stack.callFrames.shift(); |
| 1314 if (previous && !stack.callFrames.length) | 1314 if (previous && !stack.callFrames.length) |
| 1315 previous.parent = stack.parent; | 1315 previous.parent = stack.parent; |
| 1316 else | 1316 else |
| 1317 previous = stack; | 1317 previous = stack; |
| 1318 stack = stack.parent; | 1318 stack = stack.parent; |
| 1319 } | 1319 } |
| 1320 return asyncStackTrace; | 1320 return asyncStackTrace; |
| 1321 } | 1321 } |
| 1322 }; | 1322 }; |
| OLD | NEW |