[w3c/FileAPI] Consider substituting optional BlobPart or sequence<BlobPart> for optional sequence<BlobPart> blobParts at constructor (#150)

Per https://github.com/heycam/webidl/issues/868#issuecomment-609460584

>  In theory, the type of the argument could have been (BlobPart or sequence<BlobPart>) and due to the algorithm for coercing a union type, a lone TypedArray would then end up recognized as a BlobPart rather than a sequence, I believe. That is probably what you were hoping for / would have found more intuitive.

`BlobPart or sequence<BlobPart>` could allow 

`new Blob(TypedArray)` 

to not be converted to a string.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/150

Received on Sunday, 5 April 2020 19:05:49 UTC