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:
Let outputChunk be the result of running serialize I/O queue with - decoder and output. +
Let item be the result of reading from decoder's + I/O queue. -
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: + +
Let outputChunk be the result of running serialize I/O queue with + decoder and output. + +
If outputChunk is non-empty, then enqueue + outputChunk in decoder's transform. + +
Return. +