reserving __bind and __indexOf

This commit is contained in:
Jeremy Ashkenas 2010-12-23 22:24:14 -08:00
parent 385be63126
commit 97f8e9ce1c
2 changed files with 2 additions and 2 deletions

View File

@ -595,7 +595,7 @@
}) {
COFFEE_KEYWORDS.push(op);
}
RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'do', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice'];
RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'do', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf'];
JS_FORBIDDEN = JS_KEYWORDS.concat(RESERVED);
exports.RESERVED = RESERVED.concat(JS_KEYWORDS).concat(COFFEE_KEYWORDS);
IDENTIFIER = /^([$A-Za-z_][$\w]*)([^\n\S]*:(?!:))?/;

View File

@ -523,7 +523,7 @@ COFFEE_KEYWORDS.push op for op of COFFEE_ALIASES =
RESERVED = [
'case', 'default', 'function', 'var', 'void', 'with', 'do'
'const', 'let', 'enum', 'export', 'import', 'native'
'__hasProp', '__extends', '__slice'
'__hasProp', '__extends', '__slice', '__bind', '__indexOf'
]
# The superset of both JavaScript keywords and reserved words, none of which may