From c988faf3c500fb3ff93a40ef9945312e63011086 Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Fri, 24 Apr 2020 13:54:11 -0400 Subject: [PATCH] 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 #1697.) --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 9a604112b07..2698440005a 100644 --- a/spec.html +++ b/spec.html @@ -8619,7 +8619,7 @@

FunctionDeclarationInstantiation ( _func_, _argumentsList_ )

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