CoffeeScript-in-CoffeeScript is now able to compile subClass extends superClass

This commit is contained in:
Jeremy Ashkenas
2010-02-08 23:16:29 -05:00
parent 210d673ef0
commit 32098e5a13
4 changed files with 58 additions and 16 deletions

View File

@@ -47,7 +47,7 @@
};
// Find an available, short, name for a compiler-generated variable.
Scope.prototype.free_variable = function free_variable() {
while (check(this.temp_variable)) {
while (this.check(this.temp_variable)) {
((this.temp_variable = succ(this.temp_variable)));
}
this.variables[this.temp_variable] = 'var';