New issue

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

Add clarification that StrictFormalParameters does not imply strict mode code #618

Closed
tcare opened this Issue Jun 22, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@tcare
Member

tcare commented Jun 22, 2016

I've seen a number of people confused that StrictFormalParameters does not imply strict mode code. I have definitely seen bugs introduced due to this confusion too, especially around non-simple parameter lists with opt-in behavior.

A while back on #jslang we spoke about perhaps renaming StrictFormalParameters to something more reflective of the nature of preventing duplicates. I would instead propose that we add a note to 14.1.1 (https://tc39.github.io/ecma262/#sec-directive-prologues-and-the-use-strict-directive) or 14.1.2 (https://tc39.github.io/ecma262/#sec-function-definitions-static-semantics-early-errors) that a StrictFormalParameters production in a non-strict context does not imply strict mode code rules.

@jmdyck

This comment has been minimized.

Show comment
Hide comment
@jmdyck
Collaborator

jmdyck commented Jun 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment