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

Unified Diff: third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js

Issue 2017723002: DevTools: pretty-print javascript class expression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/es_tree/ESTreeWalker.js
diff --git a/third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js b/third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js
index b990d423872d0695012cb5f18f13f035bd3e9716..5d266d55d65ae86b9aa08d5c7b07d1297ccea482 100644
--- a/third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js
+++ b/third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js
@@ -107,6 +107,7 @@ WebInspector.ESTreeWalker._walkOrder = {
"CatchClause": ["param", "body"],
"ClassBody": ["body"],
"ClassDeclaration": ["id", "superClass", "body"],
+ "ClassExpression": ["id", "superClass", "body"],
"ConditionalExpression": ["test", "consequent", "alternate"],
"ContinueStatement": ["label"],
"DebuggerStatement": [],

Powered by Google App Engine
This is Rietveld 408576698