Skip to content

Commit 3e58c90

Browse files
jmdyckljharb
authored andcommitted
Editorial: Consistify capitalization re iterator wording (#3469)
It looks like PR #3459 missed these changes to capitalization and use of "<em>".
1 parent 75f1523 commit 3e58c90

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -3331,7 +3331,7 @@ <h1>Well-Known Intrinsic Objects</h1>
33313331
<td>
33323332
</td>
33333333
<td>
3334-
The prototype of async-from-sync iterator objects (<emu-xref href="#sec-async-from-sync-iterator-objects"></emu-xref>)
3334+
The prototype of Async-from-Sync Iterator objects (<emu-xref href="#sec-async-from-sync-iterator-objects"></emu-xref>)
33353335
</td>
33363336
</tr>
33373337
<tr>
@@ -3568,7 +3568,7 @@ <h1>Well-Known Intrinsic Objects</h1>
35683568
<td>
35693569
</td>
35703570
<td>
3571-
The prototype of For-In iterator objects (<emu-xref href="#sec-for-in-iterator-objects"></emu-xref>)
3571+
The prototype of For-In Iterator objects (<emu-xref href="#sec-for-in-iterator-objects"></emu-xref>)
35723572
</td>
35733573
</tr>
35743574
<tr>
@@ -22445,7 +22445,7 @@ <h1>%ForInIteratorPrototype%.next ( )</h1>
2244522445
<emu-alg>
2244622446
1. Let _O_ be the *this* value.
2244722447
1. Assert: _O_ is an Object.
22448-
1. Assert: _O_ has all of the internal slots of a For-In Iterator Instance (<emu-xref href="#sec-properties-of-for-in-iterator-instances"></emu-xref>).
22448+
1. Assert: _O_ has all of the internal slots of a For-In Iterator instance (<emu-xref href="#sec-properties-of-for-in-iterator-instances"></emu-xref>).
2244922449
1. Let _object_ be _O_.[[Object]].
2245022450
1. Repeat,
2245122451
1. If _O_.[[ObjectWasVisited]] is *false*, then
@@ -42308,7 +42308,7 @@ <h1>Properties of Map Instances</h1>
4230842308

4230942309
<emu-clause id="sec-map-iterator-objects">
4231042310
<h1>Map Iterator Objects</h1>
42311-
<p>A <dfn variants="Map Iterators,Map Iterator object,Map Iterator objects">Map Iterator</dfn> is an object that represents a specific iteration over some specific Map instance object. There is not a named constructor for Map Iterator objects. Instead, map iterator objects are created by calling certain methods of Map instance objects.</p>
42311+
<p>A <dfn variants="Map Iterators,Map Iterator object,Map Iterator objects">Map Iterator</dfn> is an object that represents a specific iteration over some specific Map instance object. There is not a named constructor for Map Iterator objects. Instead, Map Iterator objects are created by calling certain methods of Map instance objects.</p>
4231242312

4231342313
<emu-clause id="sec-createmapiterator" type="abstract operation" oldids="sec-properties-of-map-iterator-instances,table-50,table-internal-slots-of-map-iterator-instances">
4231442314
<h1>
@@ -42940,7 +42940,7 @@ <h1>Properties of Set Instances</h1>
4294042940

4294142941
<emu-clause id="sec-set-iterator-objects">
4294242942
<h1>Set Iterator Objects</h1>
42943-
<p>A <dfn variants="Set Iterators,Set Iterator object,Set Iterator objects">Set Iterator</dfn> is an ordinary object, with the structure defined below, that represents a specific iteration over some specific Set instance object. There is not a named constructor for Set Iterator objects. Instead, set iterator objects are created by calling certain methods of Set instance objects.</p>
42943+
<p>A <dfn variants="Set Iterators,Set Iterator object,Set Iterator objects">Set Iterator</dfn> is an ordinary object, with the structure defined below, that represents a specific iteration over some specific Set instance object. There is not a named constructor for Set Iterator objects. Instead, Set Iterator objects are created by calling certain methods of Set instance objects.</p>
4294442944

4294542945
<emu-clause id="sec-createsetiterator" type="abstract operation" oldids="sec-properties-of-set-iterator-instances,table-51,table-internal-slots-of-set-iterator-instances">
4294642946
<h1>
@@ -46452,7 +46452,7 @@ <h1>The Iterator Interface</h1>
4645246452
</table>
4645346453
</emu-table>
4645446454
<emu-note>
46455-
<p>Arguments may be passed to the `next` function but their interpretation and validity is dependent upon the target iterator. The for-of statement and other common users of <em>Iterators</em> do not pass any arguments, so iterator objects that expect to be used in such a manner must be prepared to deal with being called with no arguments.</p>
46455+
<p>Arguments may be passed to the `next` function but their interpretation and validity is dependent upon the target iterator. The for-of statement and other common users of iterators do not pass any arguments, so iterator objects that expect to be used in such a manner must be prepared to deal with being called with no arguments.</p>
4645646456
</emu-note>
4645746457
<emu-table id="table-iterator-interface-optional-properties" caption="Iterator Interface Optional Properties" oldids="table-54">
4645846458
<table>
@@ -46543,7 +46543,7 @@ <h1>The Async Iterator Interface</h1>
4654346543
</table>
4654446544
</emu-table>
4654546545
<emu-note>
46546-
<p>Arguments may be passed to the `next` function but their interpretation and validity is dependent upon the target async iterator. The `for`-`await`-`of` statement and other common users of <em>AsyncIterators</em> do not pass any arguments, so async iterator objects that expect to be used in such a manner must be prepared to deal with being called with no arguments.</p>
46546+
<p>Arguments may be passed to the `next` function but their interpretation and validity is dependent upon the target async iterator. The `for`-`await`-`of` statement and other common users of async iterators do not pass any arguments, so async iterator objects that expect to be used in such a manner must be prepared to deal with being called with no arguments.</p>
4654746547
</emu-note>
4654846548
<emu-table id="table-async-iterator-optional" caption="Async Iterator Interface Optional Properties">
4654946549
<table>
@@ -46605,7 +46605,7 @@ <h1>The IteratorResult Interface</h1>
4660546605
a Boolean
4660646606
</td>
4660746607
<td>
46608-
This is the result status of an <em>iterator</em> `next` method call. If the end of the iterator was reached *"done"* is *true*. If the end was not reached *"done"* is *false* and a value is available. If a *"done"* property (either own or inherited) does not exist, it is considered to have the value *false*.
46608+
This is the result status of an iterator `next` method call. If the end of the iterator was reached *"done"* is *true*. If the end was not reached *"done"* is *false* and a value is available. If a *"done"* property (either own or inherited) does not exist, it is considered to have the value *false*.
4660946609
</td>
4661046610
</tr>
4661146611
<tr>
@@ -46761,7 +46761,7 @@ <h1>The %Iterator.prototype% Object</h1>
4676146761
<li>is an ordinary object.</li>
4676246762
</ul>
4676346763
<emu-note>
46764-
<p>All objects defined in this specification that implement the Iterator interface also inherit from %Iterator.prototype%. ECMAScript code may also define objects that inherit from %Iterator.prototype%. The %Iterator.prototype% object provides a place where additional methods that are applicable to all iterator objects may be added.</p>
46764+
<p>All objects defined in this specification that implement the iterator interface also inherit from %Iterator.prototype%. ECMAScript code may also define objects that inherit from %Iterator.prototype%. The %Iterator.prototype% object provides a place where additional methods that are applicable to all iterator objects may be added.</p>
4676546765
<p>The following expression is one way that ECMAScript code can access the %Iterator.prototype% object:</p>
4676646766
<pre><code class="javascript">Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))</code></pre>
4676746767
</emu-note>

0 commit comments

Comments
 (0)