Skip to content

Commit 951e47b

Browse files
committed
Simplify IDL
1 parent 007a188 commit 951e47b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

spec/Overview.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,16 +1220,18 @@ <h3>Serialization and deserialization steps</h3>
12201220
</section>
12211221
</section>
12221222

1223-
<section id="iterable-interfaces">
1224-
<h2>Iterable interfaces</h2>
1223+
<section id="buffersources">
1224+
<h2>BufferSources</h2>
12251225
<p>
1226-
The <dfn id="dfn-IterableOfBufferSources">IterableOfBufferSources</dfn> type represents objects that conform to the <a data-cite="ECMAScript/control-abstraction-objects.html#sec-iterable-interface">iterable interface</a>, and produce {{BufferSource}} values when iterated over.
1227-
The <dfn id="dfn-AsyncIterableOfBufferSources">AsyncIterableOfBufferSources</dfn> type represents objects that conform to the <a data-cite="ECMAScript/control-abstraction-objects.html#sec-asynciterable-interface">async iterable interface</a>, and produce {{BufferSource}} values when asynchronously iterated over.
1226+
The <dfn id="dfn-BufferSources" data-lt-no-plural>BufferSources</dfn> type represents objects that either are a {{BufferSource}},
1227+
or <a data-cite="ECMAScript/control-abstraction-objects.html#sec-common-iteration-interfaces">conform</a>
1228+
to the <a data-cite="ECMAScript/control-abstraction-objects.html#sec-iterable-interface">iterable interface</a>
1229+
or <a data-cite="ECMAScript/control-abstraction-objects.html#sec-asynciterable-interface">async iterable interface</a>
1230+
and produce {{BufferSource}} values when iterated over.
12281231
This is checked by the calling functions rather than by Web IDL.
12291232
</p>
12301233
<pre class=idl>
1231-
typedef object IterableOfBufferSources;
1232-
typedef object AsyncIterableOfBufferSources;
1234+
typedef object BufferSources;
12331235
</pre>
12341236
</section>
12351237

@@ -1267,7 +1269,7 @@ <h2>SubtleCrypto interface</h2>
12671269
);
12681270
Promise&lt;ArrayBuffer> digest(
12691271
AlgorithmIdentifier algorithm,
1270-
(BufferSource or IterableOfBufferSources or AsyncIterableOfBufferSources) data
1272+
BufferSources data
12711273
);
12721274

12731275
Promise&lt;(CryptoKey or CryptoKeyPair)> generateKey(

0 commit comments

Comments
 (0)