diff --git a/encoding.bs b/encoding.bs index 1bc69f5..be9db2d 100644 --- a/encoding.bs +++ b/encoding.bs @@ -1810,23 +1810,35 @@ steps:
  • Let output be the I/O queue of scalar values « end-of-queue ». -

  • Let result be the result of processing an item with end-of-queue, - decoder's decoder, decoder's - I/O queue, output, and decoder's - error mode. -

  • -

    If result is finished, then: +

    While true:

      -
    1. Let outputChunk be the result of running serialize I/O queue with - decoder and output. +

    2. Let item be the result of reading from decoder's + I/O queue. -

    3. If outputChunk is non-empty, then enqueue - outputChunk in decoder's transform. -

    +
  • Let result be the result of processing an item with item, + decoder's decoder, decoder's + I/O queue, output, and decoder's + error mode. -

  • Otherwise, throw a {{TypeError}}. +

  • +

    If result is finished, then: + +

      +
    1. Let outputChunk be the result of running serialize I/O queue with + decoder and output. + +

    2. If outputChunk is non-empty, then enqueue + outputChunk in decoder's transform. + +

    3. Return. +

    +
  • + +
  • Otherwise, if result is error, throw a {{TypeError}}. + +