Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Add restrictions for arguments and SuperCall #15

Merged
merged 3 commits into from Nov 6, 2020

Conversation

rbuckton
Copy link
Collaborator

This adds Static Semantics to provide early errors if a static {} initialization block contains either of the two cases:

  • An IdentifierReference with a StringValue of arguments (it is already an error to declare a BindingIdentifier with a SV of arguments in strict mode code)
  • A SuperCall.

This also adds clarification to the README.md that SuperProperty access is still permitted.

Fixes: #14
Fixes: #13
Fixes: #12

@rbuckton
Copy link
Collaborator Author

@ljharb: Is there an automated process I can hook into for rendering a spec for a PR? IIRC, you were working on something for the main specification but I wasn't sure if there was a reusable process for proposals yet.

@ljharb
Copy link
Member

ljharb commented Sep 20, 2020

@rbuckton it’s something we could work on setting up, but atm it’s only for the main spec.

README.md Outdated Show resolved Hide resolved
rbuckton and others added 2 commits November 5, 2020 22:38
@rbuckton rbuckton merged commit 011a730 into master Nov 6, 2020
@ljharb ljharb deleted the argumentsAndSuperCallRestrictions branch November 6, 2020 06:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants