removing 'this' rewriting in favor of correctly calling generated closures

This commit is contained in:
Jeremy Ashkenas
2010-01-23 21:11:27 -05:00
parent c3ce2ea9b1
commit 9160500e84
4 changed files with 1254 additions and 1300 deletions

View File

@@ -16,8 +16,7 @@ module CoffeeScript
"delete", "instanceof", "typeof",
"switch", "when",
"super", "extends",
"arguments",
"this"]
"arguments"]
# Token matching regexes.
IDENTIFIER = /\A([a-zA-Z$_](\w|\$)*)/
@@ -48,7 +47,7 @@ module CoffeeScript
NOT_REGEX = [
:IDENTIFIER, :NUMBER, :REGEX, :STRING,
')', '++', '--', ']', '}',
:FALSE, :NULL, :THIS, :TRUE
:FALSE, :NULL, :TRUE
]
# Scan by attempting to match tokens one character at a time. Slow and steady.