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
var a = 0;
can become
a=0
at program level. Any assignment to a non-computed member access on this at program level can be similarly transformed:
this
this.a = 0;
The text was updated successfully, but these errors were encountered:
When the script is strict code, it becomes ReferenceError.
ReferenceError
'use strict'; Hello = 42; // ReferenceError
So we cannot apply this to strict code, and as the result, I think this optimization rarely works. Do you think about this?
Sorry, something went wrong.
I'm sure the vast majority of top-level code is not in strict mode.
Add initial implementation of top-level-variable-declaration-to-assig…
d311bff
…nment pass ref #99
Add --top-level-context and --in-strict-code options
90afa81
ref #99
No branches or pull requests
can become
at program level. Any assignment to a non-computed member access on
this
at program level can be similarly transformed:can become
The text was updated successfully, but these errors were encountered: