Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
index 64d823919bc8be9dbc5301f4a94f1a65bccc6b7b..0a3698883569956dec499f6d4bd092ab4c349a6a 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
@@ -207,13 +207,13 @@ WebInspector.TextSourceMap.load = function(sourceMapURL, compiledURL)
}
if (content.slice(0, 3) === ")]}")
- content = content.substring(content.indexOf('\n'));
+ content = content.substring(content.indexOf("\n"));
try {
var payload = /** @type {!SourceMapV3} */ (JSON.parse(content));
var baseURL = sourceMapURL.startsWith("data:") ? compiledURL : sourceMapURL;
callback(new WebInspector.TextSourceMap(compiledURL, baseURL, payload));
- } catch(e) {
+ } catch (e) {
console.error(e);
WebInspector.console.error("Failed to parse SourceMap: " + sourceMapURL);
callback(null);

Powered by Google App Engine
This is Rietveld 408576698