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
8625
8625
1. Set _argumentsObjectNeeded_ to *false*.
8626
8626
1. If _strict_ is *true* or if _hasParameterExpressions_ is *false*, then
8627
-
1. NOTE: Only a single lexical environment is needed for the parameters and top-level vars.
8627
+
1. NOTE: Only a single Environment Record is needed for the parameters and top-level vars.
8628
8628
1. Let _env_ be the LexicalEnvironment of _calleeContext_.
8629
8629
1. Else,
8630
8630
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