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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.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/ConsoleModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
index a8c69904fd1dc9a14486d1a97740b10cc89c9089..dfcb4847fe450c0da7e9c58fb1fabe4a02bd17da 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
@@ -214,7 +214,7 @@ WebInspector.ConsoleModel.evaluateCommandInConsole = function(executionContext,
}
}
if (/^\s*\{/.test(text) && /\}\s*$/.test(text))
- text = '(' + text + ')';
+ text = "(" + text + ")";
executionContext.evaluate(text, "console", !!useCommandLineAPI, false, false, true, true, printResult);
WebInspector.userMetrics.actionTaken(WebInspector.UserMetrics.Action.ConsoleEvaluated);
@@ -465,7 +465,7 @@ WebInspector.ConsoleMessage.MessageLevel = {
* @param {!WebInspector.ConsoleMessage} b
* @return {number}
*/
-WebInspector.ConsoleMessage.timestampComparator = function (a, b)
+WebInspector.ConsoleMessage.timestampComparator = function(a, b)
{
return a.timestamp - b.timestamp;
}

Powered by Google App Engine
This is Rietveld 408576698