diff --git a/lib/coffee-script/lexer.js b/lib/coffee-script/lexer.js index cf2988fa..456cf0fa 100644 --- a/lib/coffee-script/lexer.js +++ b/lib/coffee-script/lexer.js @@ -712,7 +712,7 @@ COFFEE_KEYWORDS = COFFEE_KEYWORDS.concat(COFFEE_ALIASES); - RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf', 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', 'yield']; + RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf', 'implements', 'interface', 'package', 'private', 'protected', 'public', 'static', 'yield']; STRICT_PROSCRIBED = ['arguments', 'eval']; diff --git a/src/lexer.coffee b/src/lexer.coffee index 56e8e324..2531f28c 100644 --- a/src/lexer.coffee +++ b/src/lexer.coffee @@ -576,11 +576,10 @@ COFFEE_KEYWORDS = COFFEE_KEYWORDS.concat COFFEE_ALIASES # used by CoffeeScript internally. We throw an error when these are encountered, # to avoid having a JavaScript error at runtime. RESERVED = [ - 'case', 'default', 'function', 'var', 'void', 'with' - 'const', 'let', 'enum', 'export', 'import', 'native' - '__hasProp', '__extends', '__slice', '__bind', '__indexOf' - 'implements', 'interface', 'let', 'package', - 'private', 'protected', 'public', 'static', 'yield' + 'case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum' + 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind' + '__indexOf', 'implements', 'interface', 'package', 'private', 'protected' + 'public', 'static', 'yield' ] STRICT_PROSCRIBED = ['arguments', 'eval']