We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
this
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
As noted in #2731 - the compiler incorrectly reports "[JSC_USED_GLOBAL_THIS] dangerous use of the global this object" on the this.y reference below.
this.y
class Foo { x = () => this.y; y = 3; }
this in a non-static class field initializer will refer to the class instance.
To reproduce -
closure-compiler-debugger
The text was updated successfully, but these errors were encountered:
This also repros when this is not wrapped in an arrow function.
Sorry, something went wrong.
trevorade
No branches or pull requests
As noted in #2731 - the compiler incorrectly reports "[JSC_USED_GLOBAL_THIS] dangerous use of the global this object" on the
this.y
reference below.this
in a non-static class field initializer will refer to the class instance.To reproduce -
closure-compiler-debugger
The text was updated successfully, but these errors were encountered: