Closed geelen closed 10 years ago
All arrow functions bind this, even with only one argument:
x => x + this.y needs to compile to:
x => x + this.y
function(x) { return x + this.y; }.bind(this);
This fixes that, and even has tests!
Awesome, thanks! I actually noticed that before but hadn't pushed a fix. Thanks for including tests & fixing up the other stuff!
All arrow functions bind this, even with only one argument:
x => x + this.y
needs to compile to:This fixes that, and even has tests!