Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed duplicate "let" in RESERVED list

  • Loading branch information...
commit 6417cf4d1ba1da314b53901214b262267b5fcdc4 1 parent 1731f7d
@michaelficarra michaelficarra authored
Showing with 5 additions and 6 deletions.
  1. +1 −1  lib/coffee-script/lexer.js
  2. +4 −5 src/lexer.coffee
View
2  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'];
View
9 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']
Please sign in to comment.
Something went wrong with that request. Please try again.