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.

Inserted "error the stream with that 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.

They have additional error handling steps that are different each other (abort [sub]steps, terminate the fetch, etc). So I think having an abstract operation will not greatly simplify the description.


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

Received on Monday, 7 March 2016 21:35:11 UTC