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

Unified Diff: Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js

Issue 1125143004: DevTools: [PrettyPrint] support template literals in pretty-printing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 5 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
« no previous file with comments | « Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
diff --git a/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js b/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
index 38d971da6ae2f0ad396fba05ae226e0a772449b1..7fce3d006505289c71e9b3fd546a336dbc1e9e9c 100644
--- a/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
+++ b/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
@@ -240,6 +240,10 @@ FormatterWorker.JavaScriptFormatter.prototype = {
if (AT.punctuator(token, "}"))
return "<ntn";
return "t";
+ } else if (node.type === "YieldExpression") {
+ return "t";
+ } else if (node.type === "Super") {
+ return "t";
}
return AT.keyword(token) && !AT.keyword(token, "this") ? "ts" : "t";
},
« no previous file with comments | « Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698