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

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

Issue 1614563002: DevTools: [PrettyPrint] support arrow function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-6-expected.txt ('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/script_formatter_worker/ESTreeWalker.js
diff --git a/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js b/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js
index 65e31c52e7086d03dbd11d32df267e91206a255a..243b89f0ba2f2de94f96f534869b8c2824d3fc78 100644
--- a/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js
+++ b/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js
@@ -75,6 +75,7 @@ FormatterWorker.ESTreeWalker.prototype = {
/** @enum {!Array.<string>} */
FormatterWorker.ESTreeWalker._walkOrder = {
"ArrayExpression": ["elements"],
+ "ArrowFunctionExpression": ["params", "body"],
"AssignmentExpression": ["left", "right"],
"BinaryExpression": ["left", "right"],
"BlockStatement": ["body"],
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-6-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698