File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 7
7
ArrayBufferPrototypeSlice,
8
8
ArrayPrototypePush,
9
9
ArrayPrototypeShift,
10
- DataViewCtor ,
10
+ DataView ,
11
11
FunctionPrototypeBind,
12
12
FunctionPrototypeCall,
13
13
MathMin,
@@ -2100,7 +2100,7 @@ function readableByteStreamControllerPullInto(
2100
2100
pendingPullIntos,
2101
2101
} = controller [ kState ] ;
2102
2102
let elementSize = 1 ;
2103
- let ctor = DataViewCtor ;
2103
+ let ctor = DataView ;
2104
2104
if ( isArrayBufferView ( view ) && ! isDataView ( view ) ) {
2105
2105
elementSize = view . constructor . BYTES_PER_ELEMENT ;
2106
2106
ctor = view . constructor ;
Original file line number Diff line number Diff line change @@ -1570,3 +1570,18 @@ class Source {
1570
1570
isDisturbed ( stream , true ) ;
1571
1571
} ) ( ) . then ( common . mustCall ( ) ) ;
1572
1572
}
1573
+
1574
+ {
1575
+ const stream = new ReadableStream ( {
1576
+ type : 'bytes' ,
1577
+ start ( controller ) {
1578
+ controller . close ( ) ;
1579
+ }
1580
+ } ) ;
1581
+
1582
+ const buffer = new ArrayBuffer ( 1024 ) ;
1583
+ const reader = stream . getReader ( { mode : 'byob' } ) ;
1584
+
1585
+ reader . read ( new DataView ( buffer ) )
1586
+ . then ( common . mustCall ( ) ) ;
1587
+ }
You can’t perform that action at this time.
0 commit comments