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
Editorial: Change "lexical environment" to "Environment Record"
... in FunctionDeclarationInstantiation,
to balance the NOTE in the other arm of the if-else,
and also for consistency with the NOTE at 27.a.
(I should have done this in PR tc39#1697.)
1. If *"arguments"* is an element of _functionNames_ or if *"arguments"* is an element of _lexicalNames_, then
8620
8620
1. Set _argumentsObjectNeeded_ to *false*.
8621
8621
1. If _strict_ is *true* or if _hasParameterExpressions_ is *false*, then
8622
-
1. NOTE: Only a single lexical environment is needed for the parameters and top-level vars.
8622
+
1. NOTE: Only a single Environment Record is needed for the parameters and top-level vars.
8623
8623
1. Let _env_ be the LexicalEnvironment of _calleeContext_.
8624
8624
1. Else,
8625
8625
1. NOTE: A separate Environment Record is needed to ensure that bindings created by direct eval calls in the formal parameter list are outside the environment where parameters are declared.
0 commit comments