Skip to content

Commit 4e32b14

Browse files
TimothyGutobie
authored andcommitted
Remove definition of class strings of default iterator objects (#501)
Per consensus reached in #483, class strings should only exist on iterator prototype objects.
1 parent 3750d7a commit 4e32b14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11909,9 +11909,10 @@ use standard ECMAScript Array iterator objects.
1190911909
When a [=default iterator object=] is first created,
1191011910
its index is set to 0.
1191111911

11912-
The [=class string=] of a [=default iterator object=] for a given [=interface=]
11913-
is the result of concatenating the [=identifier=] of the [=interface=]
11914-
and the string "<code> Iterator</code>".
11912+
[=Default iterator objects=] do not have [=class strings=]; when <code
11913+
class="idl">Object.prototype.toString()</code> is called on a [=default
11914+
iterator object=] of a given [=interface=], the [=class string=] of the
11915+
[=iterator prototype object=] of that [=interface=] is used.
1191511916

1191611917

1191711918
<h5 id="es-iterator-prototype-object">Iterator prototype object</h5>

0 commit comments

Comments
 (0)