File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -1880,11 +1880,18 @@ <h4>The digest method</h4>
1880
1880
</p>
1881
1881
</dd>
1882
1882
<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:
1886
1884
</dt>
1887
1885
<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>
1888
1895
<ol>
1889
1896
<li>
1890
1897
<p>
@@ -1972,12 +1979,6 @@ <h4>The digest method</h4>
1972
1979
</p>
1973
1980
</div>
1974
1981
</dd>
1975
- <dt>Otherwise:</dt>
1976
- <dd>
1977
- <p>
1978
- Return a Promise rejected with a {{TypeError}}.
1979
- </p>
1980
- </dd>
1981
1982
</dl>
1982
1983
</li>
1983
1984
<li>
You can’t perform that action at this time.
0 commit comments