[Bug 25343] Expose an isClosed property on Blob Objects

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25343

--- Comment #7 from Glenn Maynard <glenn@zewt.org> ---
(In reply to Arun from comment #6)
> In this case, you're setting the Blob to null, and code might do a null
> check (or an if not null check). This certainly makes it unnecessary to have
> a property like isClosed, but it is still a check! isClosed explicitly
> checks for closed.

It's not a check that requires adding something extra to Blob.

> > It's just like how you don't need to test if a file descriptor is closed,
> > you just don't hang onto them after you close them.
> 
> 
> In the example with textures, you might hang on to it *till* it's closed.

I just mean that you throw away the blob in the same place that you close them.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 24 April 2014 20:54:34 UTC