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
esnext, class, static
Playground link with relevant code
class C { static t = () => this }
class C { } C.t = () => this;
And with an exception.
Works fine. And: C.t() === C // true
C.t() === C // true
The text was updated successfully, but these errors were encountered:
BTW: I'm not sure which version is the bar that should we ignore the transform. (Might esnext)
Sorry, something went wrong.
You need to set useDefineForClassFields to true.
useDefineForClassFields
true
this
Ohhh. Thanks!
No branches or pull requests
Bug Report
🔎 Search Terms
esnext, class, static
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
And with an exception.
🙂 Expected behavior
Works fine. And:
C.t() === C // true
The text was updated successfully, but these errors were encountered: