Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(streams): add support Float64Array to ReadableStreamByobReader #18188

Merged
merged 7 commits into from
Mar 27, 2023
Prev Previous commit
Next Next commit
Fix ReferenceError
  • Loading branch information
petamoriken committed Mar 16, 2023
commit 10825b888b2c32b698b5c752e41ea18131d302cf
2 changes: 1 addition & 1 deletion ext/web/06_streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ async function readableStreamCollectIntoUint8Array(stream) {

if (done) break;

if (!ObjectPrototypeIsPrototypeOf(Uint8ArrayPrototype, chunk)) {
if (TypedArrayPrototypeGetSymbolToStringTag(chunk) !== "Uint8Array") {
throw new TypeError(
"Can't convert value to Uint8Array while consuming the stream",
);
Expand Down