Skip to content

Commit

Permalink
stream: rename unknown primordial
Browse files Browse the repository at this point in the history
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 <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
VoltrexKeyva authored and danielleadams committed Mar 2, 2022
1 parent 8b3749f commit 16d8424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/webstreams/readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
ArrayBufferPrototypeSlice,
ArrayPrototypePush,
ArrayPrototypeShift,
DataViewCtor,
DataView,
FunctionPrototypeBind,
FunctionPrototypeCall,
MathMin,
Expand Down Expand Up @@ -2132,7 +2132,7 @@ function readableByteStreamControllerPullInto(
pendingPullIntos,
} = controller[kState];
let elementSize = 1;
let ctor = DataViewCtor;
let ctor = DataView;
if (isArrayBufferView(view) && !isDataView(view)) {
elementSize = view.constructor.BYTES_PER_ELEMENT;
ctor = view.constructor;
Expand Down

0 comments on commit 16d8424

Please sign in to comment.