Chromium Code Reviews

Unified Diff: Source/devtools/front_end/sources/JavaScriptCompiler.js

Issue 1264133002: Devtools: [WIP] Implement enhanced devtools extension language APIs Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modify override dropdown to apply to console completions & transpile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/devtools/front_end/sources/JavaScriptCompiler.js
diff --git a/Source/devtools/front_end/sources/JavaScriptCompiler.js b/Source/devtools/front_end/sources/JavaScriptCompiler.js
index 23850b492da0bdaae247b5c5565c4b9e681f907d..a4e2f305ee4be2d84b9ddb2d86f8989e9915fd06 100644
--- a/Source/devtools/front_end/sources/JavaScriptCompiler.js
+++ b/Source/devtools/front_end/sources/JavaScriptCompiler.js
@@ -70,7 +70,8 @@ WebInspector.JavaScriptCompiler.prototype = {
}
if (!exceptionDetails)
return;
- var message = new WebInspector.SourceFrameMessage(exceptionDetails.text, WebInspector.SourceFrameMessage.Level.Error, exceptionDetails.line - 1, exceptionDetails.column + 1);
+ var location = {line: exceptionDetails.line - 1, column: exceptionDetails.column + 1};
+ var message = new WebInspector.SourceFrameMessage(exceptionDetails.text, WebInspector.SourceFrameMessage.Level.Error, location, location);
this._sourceFrame.addMessageToSource(message);
this._compilationFinishedForTest();
}

Powered by Google App Engine