@@ -1470,7 +1470,8 @@ interface ReadableStreamDefaultController {
1470
1470
readonly attribute unrestricted double? desiredSize;
1471
1471
1472
1472
undefined close();
1473
- undefined enqueue(optional any chunk, optional sequence<object> transfer = []);
1473
+ undefined enqueue(any chunk, sequence<object> transfer);
1474
+ undefined enqueue(optional any chunk, optional StructuredSerializeOptions options = { });
1474
1475
undefined error(optional any e);
1475
1476
};
1476
1477
</xmp>
@@ -1580,12 +1581,23 @@ the following table:
1580
1581
</div>
1581
1582
1582
1583
<div algorithm>
1583
- The <dfn id="rs-default-controller-enqueue" method
1584
- for="ReadableStreamDefaultController"> enqueue(|chunk|, |transferList |)</dfn> method steps are:
1584
+ The <dfn id="ref-for- rs-default-controller-enqueue① " method
1585
+ for="ReadableStreamDefaultController"> enqueue(|chunk|, |transfer |)</dfn> method steps are:
1585
1586
1586
1587
1. If ! [$ReadableStreamDefaultControllerCanCloseOrEnqueue$] ([=this=] ) is false, throw a
1587
1588
{{TypeError}} exception.
1588
- 1. Perform ? [$ReadableStreamDefaultControllerEnqueue$] ([=this=] , |chunk|, |transferList|).
1589
+ 1. Perform ? [$ReadableStreamDefaultControllerEnqueue$] ([=this=] , |chunk|, |transfer|).
1590
+ </div>
1591
+
1592
+
1593
+ <div algorithm>
1594
+ The <dfn id="ref-for-rs-default-controller-enqueue②" method
1595
+ for="ReadableStreamDefaultController"> enqueue(|chunk|, |options|)</dfn> method steps are:
1596
+
1597
+ 1. Let |transfer| be |options|["transfer"] .
1598
+ 1. If ! [$ReadableStreamDefaultControllerCanCloseOrEnqueue$] ([=this=] ) is false, throw a
1599
+ {{TypeError}} exception.
1600
+ 1. Perform ? [$ReadableStreamDefaultControllerEnqueue$] ([=this=] , |chunk|, |transfer|).
1589
1601
</div>
1590
1602
1591
1603
<div algorithm>
0 commit comments