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

Add a note of Blob Constructor in IE10 #14374

Merged
merged 1 commit into from
Jan 25, 2022
Merged

Add a note of Blob Constructor in IE10 #14374

merged 1 commit into from
Jan 25, 2022

Conversation

aleen42
Copy link
Contributor

@aleen42 aleen42 commented Dec 31, 2021

Summary

Add a note of Blob Constructor in IE10 to specify a special behaviour.

Test results and supporting details

new Blob([new Uint8Array(0)]); // => "InvalidStateError"

Workaround

var bytes = new Uint8Array(0);

try {
    new Blob([bytes]); // => "InvalidStateError"
} catch (ignore) {
    var blobBuilder = new MSBlobBuilder();
    blobBuilder.append(bytes.buffer);
    blobBuilder.getBlob();
}

@estelle
Copy link
Member

estelle commented Jan 3, 2022

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR, @aleen42.

api/Blob.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you! 🎉

@ddbeck ddbeck merged commit 7ab0a0f into mdn:main Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants