Skip to content

Commit 8a322bb

Browse files
committed
Update more Falafel calls
1 parent d488d86 commit 8a322bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/test_syntax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function assertJasmineSuites() {
4242
var code = fs.readFileSync(file, 'utf-8');
4343
var bn = path.basename(file);
4444

45-
falafel(code, {locations: true}, function(node) {
45+
falafel(code, { ecmaVersion: 12, locations: true }, function(node) {
4646
var lineInfo = '[line ' + node.loc.start.line + '] :';
4747

4848
if(node.type === 'Identifier' && BLACK_LIST.indexOf(node.name) !== -1) {
@@ -108,7 +108,7 @@ function assertSrcContents() {
108108

109109
// parse through code string while keeping track of comments
110110
var comments = [];
111-
falafel(code, {onComment: comments, locations: true}, function(node) {
111+
falafel(code, { ecmaVersion: 12, locations: true, onComment: comments }, function(node) {
112112
// look for .classList
113113
if(node.type === 'MemberExpression') {
114114
var source = node.source();

0 commit comments

Comments
 (0)