Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
index 48c38108fc45951178aa924a3b1d48db053e9507..c3f8b49aecbcaf744d2b7b5116c0047fd439ee90 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
@@ -69,9 +69,9 @@ WebInspector.JavaScriptCompiler.prototype = { |
this.scheduleCompile(); |
return; |
} |
- if (!exceptionDetails) |
+ if (!exceptionDetails || !exceptionDetails.hasOwnProperty("lineNumber")) |
return; |
- this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourceCode.Message.Level.Error, exceptionDetails.text, exceptionDetails.line - 1, exceptionDetails.column + 1); |
+ this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourceCode.Message.Level.Error, exceptionDetails.text, /** @type {number} */(exceptionDetails.lineNumber), exceptionDetails.columnNumber); |
this._compilationFinishedForTest(); |
} |
}, |