You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Concerns brought up around this are that static is a valid identifier in sloppy mode, and is currently an error inside class bodies, since they're auto-strict:
letstatic={x: 1};classC{staticx=2;staticy=static.x;}C.y// 1, 2, or "threw before evaluating this line"?
This currently throws; with this proposal using static., it would produce 2, but a user might expect it to produce 1, which would be confusing.
It seems
static.foo
may be a little bit easier to understand because it just map thestatic foo
declaration.The text was updated successfully, but these errors were encountered: