Skip to content

Commit 680fa72

Browse files
committed
Update ECMAScript version in Falafel call to allow logical OR operator
1 parent 2616f1b commit 680fa72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/find_locale_strings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function findLocaleStrings() {
2828
var code = fs.readFileSync(file, 'utf-8');
2929
var filePartialPath = file.substr(constants.pathToSrc.length);
3030

31-
falafel(code, {locations: true}, function(node) {
31+
falafel(code, { ecmaVersion: 12, locations: true }, function(node) {
3232
if(node.type === 'CallExpression' &&
3333
(node.callee.name === '_' || node.callee.source() === 'Lib._')
3434
) {

0 commit comments

Comments
 (0)