| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 function compileCallback(target, scriptId, exceptionDetails) | 63 function compileCallback(target, scriptId, exceptionDetails) |
| 64 { | 64 { |
| 65 this._compiling = false; | 65 this._compiling = false; |
| 66 if (this._recompileScheduled) { | 66 if (this._recompileScheduled) { |
| 67 delete this._recompileScheduled; | 67 delete this._recompileScheduled; |
| 68 this.scheduleCompile(); | 68 this.scheduleCompile(); |
| 69 return; | 69 return; |
| 70 } | 70 } |
| 71 if (!exceptionDetails) | 71 if (!exceptionDetails) |
| 72 return; | 72 return; |
| 73 var message = new WebInspector.SourceFrameMessage(exceptionDetails.t
ext, WebInspector.SourceFrameMessage.Level.Error, exceptionDetails.line - 1, exc
eptionDetails.column + 1); | 73 var location = {line: exceptionDetails.line - 1, column: exceptionDe
tails.column + 1}; |
| 74 var message = new WebInspector.SourceFrameMessage(exceptionDetails.t
ext, WebInspector.SourceFrameMessage.Level.Error, location, location); |
| 74 this._sourceFrame.addMessageToSource(message); | 75 this._sourceFrame.addMessageToSource(message); |
| 75 this._compilationFinishedForTest(); | 76 this._compilationFinishedForTest(); |
| 76 } | 77 } |
| 77 }, | 78 }, |
| 78 | 79 |
| 79 _compilationFinishedForTest: function() {} | 80 _compilationFinishedForTest: function() {} |
| 80 } | 81 } |
| OLD | NEW |