Skip to content

Commit 5027e94

Browse files
VoltrexKeyvaBethGriggs
authored andcommitted
stream: rename unknown primordial
The primordials does not expose a primordial called `DataViewCtor`, leading up to a non-existent constructor. Fixes: #40612 PR-URL: #40622 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 0d4f043 commit 5027e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/webstreams/readablestream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
ArrayBufferPrototypeSlice,
88
ArrayPrototypePush,
99
ArrayPrototypeShift,
10-
DataViewCtor,
10+
DataView,
1111
FunctionPrototypeBind,
1212
FunctionPrototypeCall,
1313
MathMin,
@@ -2132,7 +2132,7 @@ function readableByteStreamControllerPullInto(
21322132
pendingPullIntos,
21332133
} = controller[kState];
21342134
let elementSize = 1;
2135-
let ctor = DataViewCtor;
2135+
let ctor = DataView;
21362136
if (isArrayBufferView(view) && !isDataView(view)) {
21372137
elementSize = view.constructor.BYTES_PER_ELEMENT;
21382138
ctor = view.constructor;

0 commit comments

Comments
 (0)