- From: Adam Rice <notifications@github.com>
- Date: Wed, 08 Aug 2018 01:55:55 -0700
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 8 August 2018 08:56:18 UTC
ricea commented on this pull request. > + <var>flushAlgorithm</var>). + + <li><p>Set <var>dec</var>'s <a for=GenericTransformStream>transform</a> to <var>transform</var>. + + <li><p>Return <var>dec</var>. +</ol> + +<p>The <dfn id=concept-tds-decode-and-enqueue>decode and enqueue a chunk</dfn> algorithm, given a +{{TextDecoderStream}} <var>dec</var> and a <var>chunk</var>, runs these steps: + +<ol> + <li><p>Let <var>bufferSource</var> be the result of + <a lt="converted to an IDL value">converting</a> <var>chunk</var> to a {{BufferSource}}. If this + throws an exception, then return a promise rejected with that exception. + + <li><p><a>Push</a> a <a lt="get a copy of the buffer source">copy of</a> <var>bufferSource</var> to Great catch, thanks. I did what you proposed. This has the added benefit that we are always in sync with the checks and behaviour provided by WebIDL. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/encoding/pull/149#discussion_r208505770
Received on Wednesday, 8 August 2018 08:56:18 UTC