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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Widget.js

Issue 2563553002: DevTools: Disallow console.log statements with eslint (Closed)
Patch Set: fix tests Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/Widget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
index 9ffce9958784874a8d96ae561aaf6c65347eed09..b355d80f4024acf562547e207a58dc8ad25b1bf0 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
@@ -76,10 +76,8 @@ UI.Widget = class extends Common.Object {
}
static __assert(condition, message) {
- if (!condition) {
- console.trace();
+ if (!condition)
throw new Error(message);
- }
}
/**
@@ -438,7 +436,7 @@ UI.Widget = class extends Common.Object {
printWidgetHierarchy() {
var lines = [];
this._collectWidgetHierarchy('', lines);
- console.log(lines.join('\n'));
+ console.log(lines.join('\n')); // eslint-disable-line no-console
}
_collectWidgetHierarchy(prefix, lines) {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698