Closed drwpow closed 1 year ago
grammar.js has this line:
grammar.js
const arguments = field('arguments', alias($.command_argument_list, $.argument_list))
Most JS parsers throw the following error because arguments is a reserved word:
arguments
Error: Binding arguments in strict mode
Screenshot
acorn
@babel/parser
meriyah
This file should be valid JS. Simply renaming arguments solves the error.
Error
grammar.js
has this line:Most JS parsers throw the following error because
arguments
is a reserved word:Screenshot
Reproduction
acorn
,@babel/parser
, andmeriyah
(module mode) will show the errors.Expected
This file should be valid JS. Simply renaming
arguments
solves the error.