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

Is Blob arrayBuffer() method being polyfilled? #1273

Closed
yvele opened this issue Jul 25, 2023 · 3 comments
Closed

Is Blob arrayBuffer() method being polyfilled? #1273

yvele opened this issue Jul 25, 2023 · 3 comments

Comments

@yvele
Copy link

yvele commented Jul 25, 2023

I can't find Blob.arrayBuffer() in the doc, I'm not sure if it is handled by core-js 🤔

About the Blob: arrayBuffer() method:

@zloirock
Copy link
Owner

Hi. Thanks for the issue.

In my vision, it's out of the current scope of core-js - now it covers ECMAScript, ECMAScript proposals, and some cross-platform Web APIs that are maximally closer to ECMAScript.

We can't polyfill Blob everywhere since it's tightly integrated with and / or represents platform-specific APIs. We can't polyfill Blob.arrayBuffer since IIRC we have no ways that will work everywhere (however, I could be mistaken, because I did not delve into this issue).

Theoretically, in the future can be added a Blob.arrayBuffer polyfill that will add it in cases where it's possible, however there are many APIs closer to ECMAScript.

@yvele
Copy link
Author

yvele commented Jul 29, 2023

Thank @zloirock for the detailed answer 👍

Do you know any equivalent to core-js for the the Web API that includes Blob polyfills?

@zloirock
Copy link
Owner

For such web polyfills, you could take a look at core-web - however, I see a polyfill for Blob, but not for .arrayBuffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants