We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoffeeScript:
class Cat [@symbol]: =>
Output Javascript:
class Cat { constructor() { this.[this.symbol] = this.[this.symbol].bind(this); } [this.symbol]() {} }
But must compile like this:
class Cat { constructor() { this[Cat.symbol] = this[Cat.symbol].bind(this); } [Cat.symbol]() {} }
this in constructor is not this in class body not need dot after this keyword, this.[exp] is syntax error this.[this.symbol]
this.[this.symbol]
Reason:
class { [EXP PROP NAME IN CLASS BODY NOT WORKING CORRECT]() {} }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CoffeeScript:
Output Javascript:
But must compile like this:
Two bugs:
this in constructor is not this in class body
not need dot after this keyword, this.[exp] is syntax error
this.[this.symbol]
Reason:
The text was updated successfully, but these errors were encountered: