Re: [fetch] Replace byte stream with ReadableStream. (#200)

> @@ -3433,12 +3501,19 @@ <h4 id="should-response-to-request-be-blocked-due-to-nosniff?"><dfn title="shoul
>  
>     <dt><code title>USVString</code>
>     <dd>
> -    <p>Push the result of running <span data-anolis-spec=encoding>utf-8 encode</span> on
> -    <var>object</var> to <var>stream</var>.
> +    <p><span title=concept-enqueue-ReadableStream>Enqueue</span> a <code>Uint8Array</code> object
> +    wrapping an <code>ArrayBuffer</code> containing the result of running
> +    <span data-anolis-spec=encoding>utf-8 encode</span> on <var>object</var> to <var>stream</var>.

I think utf8-encoding never fails: it uses replacement characters when seeing an error.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/200/files#r51514302

Received on Tuesday, 2 February 2016 02:21:20 UTC