Skip to content

Commit 97cce69

Browse files
committed
stream: rename unknown primordial
The primordials does not expose a primordial called `DataViewCtor`, leading up to a non-existent constructor. Fixes: nodejs#40612
1 parent 0a62026 commit 97cce69

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,
@@ -2100,7 +2100,7 @@ function readableByteStreamControllerPullInto(
21002100
pendingPullIntos,
21012101
} = controller[kState];
21022102
let elementSize = 1;
2103-
let ctor = DataViewCtor;
2103+
let ctor = DataView;
21042104
if (isArrayBufferView(view) && !isDataView(view)) {
21052105
elementSize = view.constructor.BYTES_PER_ELEMENT;
21062106
ctor = view.constructor;

0 commit comments

Comments
 (0)