| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @param {!WebInspector.JavaScriptSourceFrame} sourceFrame | 7 * @param {!WebInspector.JavaScriptSourceFrame} sourceFrame |
| 8 */ | 8 */ |
| 9 WebInspector.JavaScriptCompiler = function(sourceFrame) | 9 WebInspector.JavaScriptCompiler = function(sourceFrame) |
| 10 { | 10 { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 * @this {WebInspector.JavaScriptCompiler} | 62 * @this {WebInspector.JavaScriptCompiler} |
| 63 */ | 63 */ |
| 64 function compileCallback(target, scriptId, exceptionDetails) | 64 function compileCallback(target, scriptId, exceptionDetails) |
| 65 { | 65 { |
| 66 this._compiling = false; | 66 this._compiling = false; |
| 67 if (this._recompileScheduled) { | 67 if (this._recompileScheduled) { |
| 68 delete this._recompileScheduled; | 68 delete this._recompileScheduled; |
| 69 this.scheduleCompile(); | 69 this.scheduleCompile(); |
| 70 return; | 70 return; |
| 71 } | 71 } |
| 72 if (!exceptionDetails) | 72 if (!exceptionDetails || !exceptionDetails.hasOwnProperty("lineNumbe
r")) |
| 73 return; | 73 return; |
| 74 this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourc
eCode.Message.Level.Error, exceptionDetails.text, exceptionDetails.line - 1, exc
eptionDetails.column + 1); | 74 this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourc
eCode.Message.Level.Error, exceptionDetails.text, /** @type {number} */(exceptio
nDetails.lineNumber), exceptionDetails.columnNumber); |
| 75 this._compilationFinishedForTest(); | 75 this._compilationFinishedForTest(); |
| 76 } | 76 } |
| 77 }, | 77 }, |
| 78 | 78 |
| 79 _compilationFinishedForTest: function() {} | 79 _compilationFinishedForTest: function() {} |
| 80 } | 80 } |
| OLD | NEW |