Skip to content

Commit 007a188

Browse files
committed
Remove superfluous check that data conforms to iterable interface
1 parent f9b4b88 commit 007a188

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

spec/Overview.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,11 +1880,18 @@ <h4>The digest method</h4>
18801880
</p>
18811881
</dd>
18821882
<dt>
1883-
Otherwise, if |data| conforms to the
1884-
<a data-cite="ECMAScript/control-abstraction-objects.html#sec-iterable-interface">iterable interface</a> or
1885-
<a data-cite="ECMAScript/control-abstraction-objects.html#sec-asynciterable-interface">async iterable interface</a>:
1883+
Otherwise:
18861884
</dt>
18871885
<dd>
1886+
<div class=note>
1887+
<p>
1888+
In this case, |data| should <a data-cite="ECMAScript/control-abstraction-objects.html#sec-common-iteration-interfaces">conform</a> to the
1889+
<a data-cite="ECMAScript/control-abstraction-objects.html#sec-iterable-interface">iterable interface</a> or
1890+
<a data-cite="ECMAScript/control-abstraction-objects.html#sec-asynciterable-interface">async iterable interface</a>.
1891+
Otherwise, the call to <a data-cite="ECMAScript/abstract-operations.html#sec-getiterator">`GetIterator`</a> below
1892+
will throw a `TypeError`.
1893+
</p>
1894+
</div>
18881895
<ol>
18891896
<li>
18901897
<p>
@@ -1972,12 +1979,6 @@ <h4>The digest method</h4>
19721979
</p>
19731980
</div>
19741981
</dd>
1975-
<dt>Otherwise:</dt>
1976-
<dd>
1977-
<p>
1978-
Return a Promise rejected with a {{TypeError}}.
1979-
</p>
1980-
</dd>
19811982
</dl>
19821983
</li>
19831984
<li>

0 commit comments

Comments
 (0)