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: Blob constructor on various ArrayBuffer views #40706

Merged
merged 8 commits into from Dec 10, 2021
2 changes: 1 addition & 1 deletion lib/internal/blob.js
Expand Up @@ -123,7 +123,7 @@ function getSource(source, endings) {
// BackingStores are going to be detached and owned by
// the Blob. We also don't want to have to worry about
// byte offsets.
source = new Uint8Array(source);
source = new Uint8Array(source.buffer.slice(0), source.byteOffset);
Gozala marked this conversation as resolved.
Show resolved Hide resolved
return [source.byteLength, source];
}

Expand Down