The Wayback Machine - https://web.archive.org/web/20240801225014/https://github.com/w3c/FileAPI/issues/23
Skip to content

Navigation Menu

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

Allow Blob constructor to take ownership of ArrayBuffer(View) / invoke DetachArrayBuffer #23

Closed
arunranga opened this issue Oct 19, 2015 · 2 comments

Comments

@arunranga
Copy link

We should do this in the Blob constructor. Per Jonas Sicking, something like this:

"new Blob([myArrayBuffer], { transfer: [myArrayBuffer] });
and
new File([otherBuffer], "myFile", { transfer: [otherBuffer] });"

would work quite well I think.

This might syntactically resemble transferList from postMessage.

@annevk
Copy link
Member

annevk commented Jan 9, 2020

Let's close this given that there haven't been a lot of requests for this functionality.

@annevk annevk closed this as completed Jan 9, 2020
@jimmywarting

This comment was marked as spam.

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

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.