diff options
author | voltrexmaster <mohammadkeyvanzade94@gmail.com> | 2021-10-26 21:12:44 -0700 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2022-01-20 09:19:37 +0000 |
commit | c4a6f9ab94e3d6d8ded2424c61aea1299668f1c9 (patch) | |
tree | 81909ce84c5084cd355d4f0420bda2bb5fe6aefb | |
parent | 5753eb102f9756c558e7c697fd24378475817ac6 (diff) | |
download | node-new-c4a6f9ab94e3d6d8ded2424c61aea1299668f1c9.tar.gz |
stream: rename unknown primordial
The primordials does not expose a primordial called `DataViewCtor`,
leading up to a non-existent constructor.
Fixes: https://github.com/nodejs/node/issues/40612
PR-URL: https://github.com/nodejs/node/pull/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>
-rw-r--r-- | lib/internal/webstreams/readablestream.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/webstreams/readablestream.js b/lib/internal/webstreams/readablestream.js index e661fc2389..bb1bbf947b 100644 --- a/lib/internal/webstreams/readablestream.js +++ b/lib/internal/webstreams/readablestream.js @@ -7,7 +7,7 @@ const { ArrayBufferPrototypeSlice, ArrayPrototypePush, ArrayPrototypeShift, - DataViewCtor, + DataView, FunctionPrototypeBind, FunctionPrototypeCall, MathMin, @@ -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; |