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

Unified Diff: Source/devtools/front_end/script_formatter_worker/AcornTokenizer.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
Index: Source/devtools/front_end/script_formatter_worker/AcornTokenizer.js
diff --git a/Source/devtools/front_end/script_formatter_worker/AcornTokenizer.js b/Source/devtools/front_end/script_formatter_worker/AcornTokenizer.js
index c37a33edb3e8cb27123223f7542f9d742a5ea609..13ccb0be157d17a66781e339ed2f357a14a70e05 100644
--- a/Source/devtools/front_end/script_formatter_worker/AcornTokenizer.js
+++ b/Source/devtools/front_end/script_formatter_worker/AcornTokenizer.js
@@ -10,7 +10,7 @@ FormatterWorker.AcornTokenizer = function(content)
{
this._content = content;
this._comments = [];
- this._tokenizer = acorn.tokenizer(this._content, { onComment: this._comments });
+ this._tokenizer = acorn.tokenizer(this._content, { ecmaVersion: 6, onComment: this._comments });
this._lineEndings = this._content.lineEndings();
this._lineNumber = 0;
this._tokenLineStart = 0;
« no previous file with comments | « Source/devtools/front_end/externs.js ('k') | Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698