- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 13 Mar 2019 09:18:44 +0000 (UTC)
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 13 March 2019 09:19:06 UTC
annevk commented on this pull request. > +It must return the result of [=getting a stream for a Blob=] for the [=context object=]. + +To <dfn lt="get a stream for a Blob|getting a stream for a Blob">get a stream for a {{Blob}}</dfn> +|blob|, run the following steps: + +1. Let |stream| be the result of [=construct a ReadableStream object|constructing=] a + {{ReadableStream}} object. +1. Return |stream| and run the following steps [=in parallel=]: + 1. While not all bytes of |blob| have been read: + 1. Let |bytes| be the byte sequence that results from reading a [=chunk=] from |blob|. + 1. If a [=file read error=] occured while reading |bytes|, [$ReadableStream/error$] + |stream| with a [=failure reason=] and abort these steps. + 1. [=ReadableStream/Enqueue=] |bytes| into |stream|. + + Issue: We need to specify more concretely what reading from a Blob actually does, and what + possible errors can happen. It uses https://fetch.spec.whatwg.org/#concept-read-chunk-from-readablestream. As I mentioned in the other issue though there are some problems with how the abstraction works. -- 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/pull/117#discussion_r265033206
Received on Wednesday, 13 March 2019 09:19:06 UTC