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
{{ message }}
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
In Class Fields Proposal, it is a syntax error if the initializer contains arguments.
classC{staticfoo=arguments;// throws}
The spec currently does not throw for arguments. However, to align with fields initializer, I think it makes sense to disallow arguments directly inside static block.
Note that it is still valid if arguments is inside a function declared in the static block:
In Class Fields Proposal, it is a syntax error if the initializer contains
arguments.The spec currently does not throw for
arguments. However, to align with fields initializer, I think it makes sense to disallowargumentsdirectly inside static block.Note that it is still valid if
argumentsis inside a function declared in the static block: