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

Constructing a new blob from a closed blob #17

Closed
bakulf opened this issue Sep 9, 2015 · 0 comments
Closed

Constructing a new blob from a closed blob #17

bakulf opened this issue Sep 9, 2015 · 0 comments

Comments

@bakulf
Copy link

bakulf commented Sep 9, 2015

Currently it seems that the spec allows to create a new blob starting from a closed one:

var a = new Blob([42]);
a.close();
var b = new Blob([a]);

This seems wrong to me because a.size is 0 and that blob cannot be read in any way.
I would suggest to throw an exception.

mkruisselbrink added a commit that referenced this issue Feb 3, 2017
As discussed in #10, the utility of the close() method is unclear, and
properly specifying it would add a large amount of complexity.

By removing closing entirely, this fixes #10, fixes #17 and fixes #18.
mkruisselbrink added a commit that referenced this issue Feb 9, 2017
As discussed in #10, the utility of the close() method is unclear, and
properly specifying it would add a large amount of complexity.

By removing closing entirely, this fixes #10, fixes #17 and fixes #18.
mkruisselbrink added a commit that referenced this issue Feb 10, 2017
As discussed in #10, the utility of the close() method is unclear, and
properly specifying it would add a large amount of complexity.

By removing closing entirely, this fixes #10, fixes #17 and fixes #18.
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