Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed duplicate "let" in RESERVED list

  • Loading branch information...
commit 6417cf4d1ba1da314b53901214b262267b5fcdc4 1 parent 1731f7d
Michael Ficarra michaelficarra authored

Showing 2 changed files with 5 additions and 6 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/coffee-script/lexer.js
  2. +4 5 src/lexer.coffee
2  lib/coffee-script/lexer.js
@@ -712,7 +712,7 @@
712 712
713 713 COFFEE_KEYWORDS = COFFEE_KEYWORDS.concat(COFFEE_ALIASES);
714 714
715   - 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'];
  715 + 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'];
716 716
717 717 STRICT_PROSCRIBED = ['arguments', 'eval'];
718 718
9 src/lexer.coffee
@@ -576,11 +576,10 @@ COFFEE_KEYWORDS = COFFEE_KEYWORDS.concat COFFEE_ALIASES
576 576 # used by CoffeeScript internally. We throw an error when these are encountered,
577 577 # to avoid having a JavaScript error at runtime.
578 578 RESERVED = [
579   - 'case', 'default', 'function', 'var', 'void', 'with'
580   - 'const', 'let', 'enum', 'export', 'import', 'native'
581   - '__hasProp', '__extends', '__slice', '__bind', '__indexOf'
582   - 'implements', 'interface', 'let', 'package',
583   - 'private', 'protected', 'public', 'static', 'yield'
  579 + 'case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum'
  580 + 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind'
  581 + '__indexOf', 'implements', 'interface', 'package', 'private', 'protected'
  582 + 'public', 'static', 'yield'
584 583 ]
585 584
586 585 STRICT_PROSCRIBED = ['arguments', 'eval']

0 comments on commit 6417cf4

Please sign in to comment.
Something went wrong with that request. Please try again.