Re: [fetch] Handle an ArrayBuffer allocation failure (#228)

> @@ -2904,6 +2904,8 @@ <h4 id="should-response-to-request-be-blocked-due-to-nosniff?"><dfn title="shoul
>       <li>
>        <p><span title=concept-enqueue-ReadableStream>Enqueue</span> a <code>Uint8Array</code>
>        object wrapping an <code>ArrayBuffer</code> containing <var>bytes</var> to <var>stream</var>.
> +      If that threw an exception, <span title=concept-fetch-terminate>terminate</span> the ongoing
> +      fetch with <i>fatal</i> and abort these subsubsteps.

Should we not error stream with the exception? Perhaps it makes sense to have an abstract operation for this since we enqueue this kind of Uint8Array three times throughout the specification and they all need the same error handling.

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

Received on Tuesday, 1 March 2016 09:04:24 UTC