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

Unified Diff: third_party/WebKit/Source/devtools/front_end/formatter_worker/AcornTokenizer.js

Issue 2560963002: [Devtools] Upgrade acorn services to use ECMAScript7 (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/devtools/front_end/formatter_worker/AcornTokenizer.js
diff --git a/third_party/WebKit/Source/devtools/front_end/formatter_worker/AcornTokenizer.js b/third_party/WebKit/Source/devtools/front_end/formatter_worker/AcornTokenizer.js
index ae39313c38d4205a2824cbe24608203c66886128..c306fb6ddd6259fc60163c95116c94c288138fc6 100644
--- a/third_party/WebKit/Source/devtools/front_end/formatter_worker/AcornTokenizer.js
+++ b/third_party/WebKit/Source/devtools/front_end/formatter_worker/AcornTokenizer.js
@@ -11,7 +11,7 @@ FormatterWorker.AcornTokenizer = class {
constructor(content) {
this._content = content;
this._comments = [];
- this._tokenizer = acorn.tokenizer(this._content, {ecmaVersion: 6, onComment: this._comments});
+ this._tokenizer = acorn.tokenizer(this._content, {ecmaVersion: 7, onComment: this._comments});
PhistucK 2016/12/08 08:28:56 Maybe use a constant instead of using the same har
this._lineEndings = this._content.computeLineEndings();
this._lineNumber = 0;
this._tokenLineStart = 0;

Powered by Google App Engine
This is Rietveld 408576698