Skip to content

Commit 7664b2d

Browse files
committed
fixup: add 'variants' attributes; change "equals" to "is"
1 parent 160318f commit 7664b2d

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
@@ -10015,9 +10015,9 @@ <h1>Declarative Environment Records</h1>
1001510015
</table>
1001610016
</emu-table>
1001710017

10018-
<p>A <dfn>DeclarativeBinding</dfn> is either a SimpleDeclarativeBinding or an ImportDeclarativeBinding. SimpleDeclarativeBindings can appear in any Declarative Environment Record, but ImportDeclarativeBindings can only appear in a Module Environment Record.</p>
10018+
<p>A <dfn variants="DeclarativeBindings">DeclarativeBinding</dfn> is either a SimpleDeclarativeBinding or an ImportDeclarativeBinding. SimpleDeclarativeBindings can appear in any Declarative Environment Record, but ImportDeclarativeBindings can only appear in a Module Environment Record.</p>
1001910019

10020-
<p>A <dfn>SimpleDeclarativeBinding</dfn> has the following fields:</p>
10020+
<p>A <dfn variants="SimpleDeclarativeBindings">SimpleDeclarativeBinding</dfn> has the following fields:</p>
1002110021
<emu-table id="table-fields-of-simpledeclarativebindings" caption="SimpleDeclarativeBinding Fields">
1002210022
<table>
1002310023
<tr>
@@ -10069,7 +10069,7 @@ <h1>
1006910069
<dd>It determines if the argument identifier is one of the identifiers bound by the record.</dd>
1007010070
</dl>
1007110071
<emu-alg>
10072-
1. If _envRec_.[[Bindings]] contains a DeclarativeBinding whose [[BoundName]] field equals _N_, return *true*.
10072+
1. If _envRec_.[[Bindings]] contains a DeclarativeBinding whose [[BoundName]] field is _N_, return *true*.
1007310073
1. Return *false*.
1007410074
</emu-alg>
1007510075
</emu-clause>
@@ -10134,7 +10134,7 @@ <h1>
1013410134
</dl>
1013510135
<emu-alg>
1013610136
1. Assert: _envRec_.HasBinding(_N_) is *true*.
10137-
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field equals _N_.
10137+
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field is _N_.
1013810138
1. Assert: _binding_ is a SimpleDeclarativeBinding.
1013910139
1. Assert: _binding_.[[BoundValue]] is ~uninitialized~.
1014010140
1. Set _binding_.[[BoundValue]] to _V_.
@@ -10163,7 +10163,7 @@ <h1>
1016310163
1. Perform ! _envRec_.CreateMutableBinding(_N_, *true*).
1016410164
1. Perform ! _envRec_.InitializeBinding(_N_, _V_).
1016510165
1. Return ~unused~.
10166-
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field equals _N_.
10166+
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field is _N_.
1016710167
1. If _binding_ is an ImportDeclarativeBinding, throw a *TypeError* exception.
1016810168
1. Assert: _binding_ is a SimpleDeclarativeBinding.
1016910169
1. If _binding_.[[IsStrict]] is *true*, set _S_ to *true*.
@@ -10198,7 +10198,7 @@ <h1>
1019810198
</dl>
1019910199
<emu-alg>
1020010200
1. Assert: _envRec_.HasBinding(_N_) is *true*.
10201-
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field equals _N_.
10201+
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field is _N_.
1020210202
1. Assert: _binding_ is a SimpleDeclarativeBinding.
1020310203
1. If _binding_.[[BoundValue]] is ~uninitialized~, throw a *ReferenceError* exception.
1020410204
1. Return _binding_.[[BoundValue]].
@@ -10220,7 +10220,7 @@ <h1>
1022010220
</dl>
1022110221
<emu-alg>
1022210222
1. Assert: _envRec_.HasBinding(_N_) is *true*.
10223-
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field equals _N_.
10223+
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field is _N_.
1022410224
1. Assert: _binding_ is a SimpleDeclarativeBinding.
1022510225
1. If _binding_.[[IsDeletable]] is *false*, return *false*.
1022610226
1. Remove _binding_ from _envRec_.[[Bindings]].
@@ -11231,7 +11231,7 @@ <h1>Module Environment Records</h1>
1123111231
</tr>
1123211232
</table>
1123311233
</emu-table>
11234-
<p>The [[Bindings]] of a Module Environment Record can include both SimpleDeclarativeBindings and ImportDeclarativeBindings. An <dfn>ImportDeclarativeBinding</dfn> has the following fields:</p>
11234+
<p>The [[Bindings]] of a Module Environment Record can include both SimpleDeclarativeBindings and ImportDeclarativeBindings. An <dfn variants="ImportDeclarativeBindings">ImportDeclarativeBinding</dfn> has the following fields:</p>
1123511235
<emu-table id="table-fields-of-importdeclarativebindings" caption="ImportDeclarativeBinding Fields">
1123611236
<table>
1123711237
<tr>
@@ -11275,7 +11275,7 @@ <h1>
1127511275
<emu-alg>
1127611276
1. Assert: _S_ is *true*.
1127711277
1. Assert: _envRec_.HasBinding(_N_) is *true*.
11278-
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field equals _N_.
11278+
1. Let _binding_ be the DeclarativeBinding in _envRec_.[[Bindings]] whose [[BoundName]] field is _N_.
1127911279
1. If _binding_ is an ImportDeclarativeBinding, then
1128011280
1. Let _M_ be _binding_.[[TargetModuleRec]].
1128111281
1. Let _N2_ be _binding_.[[TargetName]].
@@ -49959,7 +49959,7 @@ <h1>Changes to BlockDeclarationInstantiation</h1>
4995949959
<p>During BlockDeclarationInstantiation the following steps are performed in place of step <emu-xref href="#step-blockdeclarationinstantiation-initializebinding"></emu-xref>:</p>
4996049960
<emu-alg replaces-step="step-blockdeclarationinstantiation-initializebinding">
4996149961
1. Perform the following steps:
49962-
1. Let _binding_ be the DeclarativeBinding in _env_.[[Bindings]] whose [[BoundName]] field equals _fn_.
49962+
1. Let _binding_ be the DeclarativeBinding in _env_.[[Bindings]] whose [[BoundName]] field is _fn_.
4996349963
1. Assert: _binding_ is a SimpleDeclarativeBinding.
4996449964
1. If _binding_.[[BoundValue]] is ~uninitialized~, then
4996549965
1. Perform ! _env_.InitializeBinding(_fn_, _fo_).

0 commit comments

Comments
 (0)