- From: Adam Rice <notifications@github.com>
- Date: Fri, 26 Jan 2018 10:00:52 +0000 (UTC)
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 26 January 2018 10:02:06 UTC
ricea commented on this pull request. > + + <li> + <p>If <var>token</var> is <a>end-of-stream</a>, run these steps: + <ol> + <li><p>Let <var>outputChunk</var> be <var>output</var>, <a lt="serialize stream">serialized</a>. + + <li><p>Call <a abstract-op>TransformStreamDefaultControllerEnqueue</a>(<var>controller</var>, <var>outputChunk</var>). + + <li><p>Return a new promise resolved with undefined. + </ol> + + <li><p>Let <var>result</var> be the result of <a>processing</a> <var>token</var> for + <var>dec</var>'s <a for=TextDecoder>decoder</a>, <var>dec</var>'s <a for=TextDecoder>stream</a>, + <var>output</var>, and <var>dec's</var> <a for=TextDecoder>error mode</a>. + + <li><p>If <var>result</var> is <a>error</a>, return a new promise rejected with a I've added "then" to all instances of ", set" and ", return". I haven't (intentionally) changed any that weren't in my patch. I still have some instances of the pattern: > If <var>token</var> is <a>end-of-stream</a>, run these steps: Are these okay, or should I add "then" here as well? -- 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/127#discussion_r164072217
Received on Friday, 26 January 2018 10:02:06 UTC