Skip to content

Commit 1c6564b

Browse files
michaelficarraljharb
authored andcommitted
Editorial: replace most occurrences of "has the value" with "is" (#2574)
1 parent 349cb31 commit 1c6564b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

spec.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10153,7 +10153,7 @@ <h1>
1015310153
<dd>a declarative Environment Record _envRec_</dd>
1015410154

1015510155
<dt>description</dt>
10156-
<dd>It creates a new mutable binding for the name _N_ that is uninitialized. A binding must not already exist in this Environment Record for _N_. If _D_ has the value *true*, the new binding is marked as being subject to deletion.</dd>
10156+
<dd>It creates a new mutable binding for the name _N_ that is uninitialized. A binding must not already exist in this Environment Record for _N_. If _D_ is *true*, the new binding is marked as being subject to deletion.</dd>
1015710157
</dl>
1015810158
<emu-alg>
1015910159
1. Assert: _envRec_ does not already have a binding for _N_.
@@ -10174,7 +10174,7 @@ <h1>
1017410174
<dd>a declarative Environment Record _envRec_</dd>
1017510175

1017610176
<dt>description</dt>
10177-
<dd>It creates a new immutable binding for the name _N_ that is uninitialized. A binding must not already exist in this Environment Record for _N_. If _S_ has the value *true*, the new binding is marked as a strict binding.</dd>
10177+
<dd>It creates a new immutable binding for the name _N_ that is uninitialized. A binding must not already exist in this Environment Record for _N_. If _S_ is *true*, the new binding is marked as a strict binding.</dd>
1017810178
</dl>
1017910179
<emu-alg>
1018010180
1. Assert: _envRec_ does not already have a binding for _N_.
@@ -10324,7 +10324,7 @@ <h1>WithBaseObject ( )</h1>
1032410324

1032510325
<emu-clause id="sec-object-environment-records">
1032610326
<h1>Object Environment Records</h1>
10327-
<p>Each <dfn variants="object Environment Records">object Environment Record</dfn> is associated with an object called its <em>binding object</em>. An object Environment Record binds the set of string identifier names that directly correspond to the property names of its binding object. Property keys that are not strings in the form of an |IdentifierName| are not included in the set of bound identifiers. Both own and inherited properties are included in the set regardless of the setting of their [[Enumerable]] attribute. Because properties can be dynamically added and deleted from objects, the set of identifiers bound by an object Environment Record may potentially change as a side-effect of any operation that adds or deletes properties. Any bindings that are created as a result of such a side-effect are considered to be a mutable binding even if the Writable attribute of the corresponding property has the value *false*. Immutable bindings do not exist for object Environment Records.</p>
10327+
<p>Each <dfn variants="object Environment Records">object Environment Record</dfn> is associated with an object called its <em>binding object</em>. An object Environment Record binds the set of string identifier names that directly correspond to the property names of its binding object. Property keys that are not strings in the form of an |IdentifierName| are not included in the set of bound identifiers. Both own and inherited properties are included in the set regardless of the setting of their [[Enumerable]] attribute. Because properties can be dynamically added and deleted from objects, the set of identifiers bound by an object Environment Record may potentially change as a side-effect of any operation that adds or deletes properties. Any bindings that are created as a result of such a side-effect are considered to be a mutable binding even if the Writable attribute of the corresponding property is *false*. Immutable bindings do not exist for object Environment Records.</p>
1032810328
<p>Object Environment Records created for `with` statements (<emu-xref href="#sec-with-statement"></emu-xref>) can provide their binding object as an implicit *this* value for use in function calls. The capability is controlled by a Boolean [[IsWithEnvironment]] field.</p>
1032910329
<p>Object Environment Records have the additional state fields listed in <emu-xref href="#table-additional-fields-of-object-environment-records"></emu-xref>.</p>
1033010330
<emu-table id="table-additional-fields-of-object-environment-records" caption="Additional Fields of Object Environment Records">
@@ -10404,7 +10404,7 @@ <h1>
1040410404
<dd>an object Environment Record _envRec_</dd>
1040510405

1040610406
<dt>description</dt>
10407-
<dd>It creates in an Environment Record's associated binding object a property whose name is the String value and initializes it to the value *undefined*. If _D_ has the value *true*, the new property's [[Configurable]] attribute is set to *true*; otherwise it is set to *false*.</dd>
10407+
<dd>It creates in an Environment Record's associated binding object a property whose name is the String value and initializes it to the value *undefined*. If _D_ is *true*, the new property's [[Configurable]] attribute is set to *true*; otherwise it is set to *false*.</dd>
1040810408
</dl>
1040910409
<emu-alg>
1041010410
1. Let _bindingObject_ be _envRec_.[[BindingObject]].
@@ -10688,7 +10688,7 @@ <h1>HasSuperBinding ( )</h1>
1068810688
</dl>
1068910689
<emu-alg>
1069010690
1. If _envRec_.[[ThisBindingStatus]] is ~lexical~, return *false*.
10691-
1. If _envRec_.[[FunctionObject]].[[HomeObject]] has the value *undefined*, return *false*; otherwise, return *true*.
10691+
1. If _envRec_.[[FunctionObject]].[[HomeObject]] is *undefined*, return *false*; otherwise, return *true*.
1069210692
</emu-alg>
1069310693
</emu-clause>
1069410694

@@ -10713,7 +10713,7 @@ <h1>GetSuperBase ( )</h1>
1071310713
</dl>
1071410714
<emu-alg>
1071510715
1. Let _home_ be _envRec_.[[FunctionObject]].[[HomeObject]].
10716-
1. If _home_ has the value *undefined*, return *undefined*.
10716+
1. If _home_ is *undefined*, return *undefined*.
1071710717
1. Assert: Type(_home_) is Object.
1071810718
1. Return ? _home_.[[GetPrototypeOf]]().
1071910719
</emu-alg>
@@ -10896,7 +10896,7 @@ <h1>
1089610896
<dd>a global Environment Record _envRec_</dd>
1089710897

1089810898
<dt>description</dt>
10899-
<dd>It creates a new mutable binding for the name _N_ that is uninitialized. The binding is created in the associated DeclarativeRecord. A binding for _N_ must not already exist in the DeclarativeRecord. If _D_ has the value *true*, the new binding is marked as being subject to deletion.</dd>
10899+
<dd>It creates a new mutable binding for the name _N_ that is uninitialized. The binding is created in the associated DeclarativeRecord. A binding for _N_ must not already exist in the DeclarativeRecord. If _D_ is *true*, the new binding is marked as being subject to deletion.</dd>
1090010900
</dl>
1090110901
<emu-alg>
1090210902
1. Let _DclRec_ be _envRec_.[[DeclarativeRecord]].
@@ -10917,7 +10917,7 @@ <h1>
1091710917
<dd>a global Environment Record _envRec_</dd>
1091810918

1091910919
<dt>description</dt>
10920-
<dd>It creates a new immutable binding for the name _N_ that is uninitialized. A binding must not already exist in this Environment Record for _N_. If _S_ has the value *true*, the new binding is marked as a strict binding.</dd>
10920+
<dd>It creates a new immutable binding for the name _N_ that is uninitialized. A binding must not already exist in this Environment Record for _N_. If _S_ is *true*, the new binding is marked as a strict binding.</dd>
1092110921
</dl>
1092210922
<emu-alg>
1092310923
1. Let _DclRec_ be _envRec_.[[DeclarativeRecord]].
@@ -14101,7 +14101,7 @@ <h1>
1410114101
1. If _newLen_ &ge; _oldLen_, then
1410214102
1. Return OrdinaryDefineOwnProperty(_A_, *"length"*, _newLenDesc_).
1410314103
1. If _oldLenDesc_.[[Writable]] is *false*, return *false*.
14104-
1. If _newLenDesc_.[[Writable]] is absent or has the value *true*, let _newWritable_ be *true*.
14104+
1. If _newLenDesc_.[[Writable]] is absent or is *true*, let _newWritable_ be *true*.
1410514105
1. Else,
1410614106
1. NOTE: Setting the [[Writable]] attribute to *false* is deferred in case any elements cannot be deleted.
1410714107
1. Let _newWritable_ be *false*.
@@ -47705,7 +47705,7 @@ <h1>The Strict Mode of ECMAScript</h1>
4770547705
A conforming implementation, when processing strict mode code, must disallow instances of the productions <emu-grammar>EscapeSequence :: LegacyOctalEscapeSequence</emu-grammar> and <emu-grammar>EscapeSequence :: NonOctalDecimalEscapeSequence</emu-grammar>.
4770647706
</li>
4770747707
<li>
47708-
Assignment to an undeclared identifier or otherwise unresolvable reference does not create a property in the global object. When a simple assignment occurs within strict mode code, its |LeftHandSideExpression| must not evaluate to an unresolvable Reference. If it does a *ReferenceError* exception is thrown (<emu-xref href="#sec-putvalue"></emu-xref>). The |LeftHandSideExpression| also may not be a reference to a data property with the attribute value { [[Writable]]: *false* }, to an accessor property with the attribute value { [[Set]]: *undefined* }, nor to a non-existent property of an object whose [[Extensible]] internal slot has the value *false*. In these cases a `TypeError` exception is thrown (<emu-xref href="#sec-assignment-operators"></emu-xref>).
47708+
Assignment to an undeclared identifier or otherwise unresolvable reference does not create a property in the global object. When a simple assignment occurs within strict mode code, its |LeftHandSideExpression| must not evaluate to an unresolvable Reference. If it does a *ReferenceError* exception is thrown (<emu-xref href="#sec-putvalue"></emu-xref>). The |LeftHandSideExpression| also may not be a reference to a data property with the attribute value { [[Writable]]: *false* }, to an accessor property with the attribute value { [[Set]]: *undefined* }, nor to a non-existent property of an object whose [[Extensible]] internal slot is *false*. In these cases a `TypeError` exception is thrown (<emu-xref href="#sec-assignment-operators"></emu-xref>).
4770947709
</li>
4771047710
<li>
4771147711
An |IdentifierReference| with the StringValue *"eval"* or *"arguments"* may not appear as the |LeftHandSideExpression| of an Assignment operator (<emu-xref href="#sec-assignment-operators"></emu-xref>) or of an |UpdateExpression| (<emu-xref href="#sec-update-expressions"></emu-xref>) or as the |UnaryExpression| operated upon by a Prefix Increment (<emu-xref href="#sec-prefix-increment-operator"></emu-xref>) or a Prefix Decrement (<emu-xref href="#sec-prefix-decrement-operator"></emu-xref>) operator.

0 commit comments

Comments
 (0)