| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 this.column = column || 0; | 262 this.column = column || 0; |
| 263 this.parameters = parameters; | 263 this.parameters = parameters; |
| 264 /** @type {!RuntimeAgent.StackTrace|undefined} */ | 264 /** @type {!RuntimeAgent.StackTrace|undefined} */ |
| 265 this.stackTrace = stackTrace; | 265 this.stackTrace = stackTrace; |
| 266 this.timestamp = timestamp || Date.now(); | 266 this.timestamp = timestamp || Date.now(); |
| 267 this.executionContextId = executionContextId || 0; | 267 this.executionContextId = executionContextId || 0; |
| 268 this.scriptId = scriptId || null; | 268 this.scriptId = scriptId || null; |
| 269 this._messageId = messageId || 0; | 269 this._messageId = messageId || 0; |
| 270 this._relatedMessageId = relatedMessageId || 0; | 270 this._relatedMessageId = relatedMessageId || 0; |
| 271 | 271 |
| 272 this.request = requestId ? target.networkLog.requestForId(requestId) : null; | 272 var networkLog = target && WebInspector.NetworkLog.fromTarget(target); |
| 273 this.request = (requestId && networkLog) ? networkLog.requestForId(requestId
) : null; |
| 273 | 274 |
| 274 if (this.request) { | 275 if (this.request) { |
| 275 var initiator = this.request.initiator(); | 276 var initiator = this.request.initiator(); |
| 276 if (initiator) { | 277 if (initiator) { |
| 277 this.stackTrace = initiator.stack || undefined; | 278 this.stackTrace = initiator.stack || undefined; |
| 278 if (initiator.url) { | 279 if (initiator.url) { |
| 279 this.url = initiator.url; | 280 this.url = initiator.url; |
| 280 this.line = initiator.lineNumber || 0; | 281 this.line = initiator.lineNumber || 0; |
| 281 } | 282 } |
| 282 } | 283 } |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv
aluated, event.data); | 605 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv
aluated, event.data); |
| 605 }, | 606 }, |
| 606 | 607 |
| 607 __proto__: WebInspector.Object.prototype | 608 __proto__: WebInspector.Object.prototype |
| 608 } | 609 } |
| 609 | 610 |
| 610 /** | 611 /** |
| 611 * @type {!WebInspector.MultitargetConsoleModel} | 612 * @type {!WebInspector.MultitargetConsoleModel} |
| 612 */ | 613 */ |
| 613 WebInspector.multitargetConsoleModel; | 614 WebInspector.multitargetConsoleModel; |
| OLD | NEW |