| 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 { |
| 11 this._sourceFrame = sourceFrame; | 11 this._sourceFrame = sourceFrame; |
| 12 this._compiling = false; | 12 this._compiling = false; |
| 13 } | 13 }; |
| 14 | 14 |
| 15 WebInspector.JavaScriptCompiler.CompileDelay = 1000; | 15 WebInspector.JavaScriptCompiler.CompileDelay = 1000; |
| 16 | 16 |
| 17 WebInspector.JavaScriptCompiler.prototype = { | 17 WebInspector.JavaScriptCompiler.prototype = { |
| 18 scheduleCompile: function() | 18 scheduleCompile: function() |
| 19 { | 19 { |
| 20 if (this._compiling) { | 20 if (this._compiling) { |
| 21 this._recompileScheduled = true; | 21 this._recompileScheduled = true; |
| 22 return; | 22 return; |
| 23 } | 23 } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 71 } |
| 72 if (!exceptionDetails) | 72 if (!exceptionDetails) |
| 73 return; | 73 return; |
| 74 var text = WebInspector.ConsoleMessage.simpleTextFromException(excep
tionDetails); | 74 var text = WebInspector.ConsoleMessage.simpleTextFromException(excep
tionDetails); |
| 75 this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourc
eCode.Message.Level.Error, text, exceptionDetails.lineNumber, exceptionDetails.c
olumnNumber); | 75 this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourc
eCode.Message.Level.Error, text, exceptionDetails.lineNumber, exceptionDetails.c
olumnNumber); |
| 76 this._compilationFinishedForTest(); | 76 this._compilationFinishedForTest(); |
| 77 } | 77 } |
| 78 }, | 78 }, |
| 79 | 79 |
| 80 _compilationFinishedForTest: function() {} | 80 _compilationFinishedForTest: function() {} |
| 81 } | 81 }; |
| OLD | NEW |