Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5027e94

Browse filesBrowse 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 <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>
1 parent 0d4f043 commit 5027e94
Copy full SHA for 5027e94

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/internal/webstreams/readablestream.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/readablestream.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.