[Bug 23479] File Constructor and Blob Constructor should have same signature

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

--- Comment #7 from Glenn Maynard <glenn@zewt.org> ---
It's not an optimization, since it allows something you can't otherwise do:
propagate all properties of the object, without knowing in advance what all of
them are (since new properties may be added).  I'd be fine with what's in the
spec currently being removed for now (so people don't implement it) until more
thought is put into this, though.

new File([data], {name: "file.txt"}) is a good idea in any case.  "name" should
be optional, like all dictionary arguments.  In order to avoid changing File
itself, the default could be "" rather than null (that could be argued both
ways).

(I do think the better solution is to merge File into Blob.)

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

Received on Friday, 11 October 2013 19:04:02 UTC