Re: [heycam/webidl] Is a TypedArray a sequence? (#868)

That clarifies the algorithm somewhat.  However, that example, and the fundamental difference between passing a `TypedArray` directly and passing a `TypedArray` wrapped in an array literal `[]` are not immediately clear at the File API specification. At some point in the past, if recollect accurately, it was mandatory to pass `[]` at `File` constructor, though not `Blob` constructor. There is obviously a different output when 

`new Blob([Uint8Array.of(1, 2, 3)]).text().then(console.log)` 

is used compared to 

`new Blob(Uint8Array.of(1, 2, 3)).text().then(console.log)`

however, as asked above, is that difference simply expected to be common knowledge, without a published example with accompanying description of the two options?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/868#issuecomment-609459317

Received on Sunday, 5 April 2020 18:17:06 UTC