|
119 | 119 | }, |
120 | 120 | { |
121 | 121 | "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②\">For each</a> <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-Uint8Array\" id=\"ref-for-idl-Uint8Array⑤\">Uint8Array</a></code> <var>array</var> of <var>arrays</var>, <a data-link-type=\"dfn\" href=\"https://streams.spec.whatwg.org/#transformstream-enqueue\" id=\"ref-for-transformstream-enqueue②\">enqueue</a> <var>array</var> in <var>ds</var>’s <a data-link-type=\"dfn\" href=\"https://streams.spec.whatwg.org/#generictransformstream-transform\" id=\"ref-for-generictransformstream-transform⑥\">transform</a>.</p>" |
| 122 | + }, |
| 123 | + { |
| 124 | + "html": "<p>If the end of the compressed input has been reached, and <var>ds</var>’s <a data-link-type=\"dfn\" href=\"https://compression.spec.whatwg.org/#decompressionstream-context\" id=\"ref-for-decompressionstream-context①\">context</a> has not fully consumed <var>chunk</var>, then throw a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror⑤\">TypeError</a></code>.</p>" |
122 | 125 | } |
123 | 126 | ] |
124 | 127 | }, |
|
129 | 132 | "rationale": ".algorithm", |
130 | 133 | "steps": [ |
131 | 134 | { |
132 | | - "html": "<p>Let <var>buffer</var> be the result of decompressing an empty input with <var>ds</var>’s <a data-link-type=\"dfn\" href=\"https://compression.spec.whatwg.org/#decompressionstream-format\" id=\"ref-for-decompressionstream-format②\">format</a> and <a data-link-type=\"dfn\" href=\"https://compression.spec.whatwg.org/#decompressionstream-context\" id=\"ref-for-decompressionstream-context①\">context</a>, with the finish flag.</p>" |
133 | | - }, |
134 | | - { |
135 | | - "html": "<p>If the end of the compressed input has not been reached, then throw a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror⑤\">TypeError</a></code>.</p>" |
136 | | - }, |
137 | | - { |
138 | | - "html": "<p>If <var>buffer</var> is empty, return.</p>" |
| 135 | + "html": "<p>Let <var>buffer</var> be the result of decompressing an empty input with <var>ds</var>’s <a data-link-type=\"dfn\" href=\"https://compression.spec.whatwg.org/#decompressionstream-format\" id=\"ref-for-decompressionstream-format②\">format</a> and <a data-link-type=\"dfn\" href=\"https://compression.spec.whatwg.org/#decompressionstream-context\" id=\"ref-for-decompressionstream-context②\">context</a>, with the finish flag.</p>" |
139 | 136 | }, |
140 | 137 | { |
141 | | - "html": "<p>Let <var>arrays</var> be the result of splitting <var>buffer</var> into one or more non-empty pieces and converting them into <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-Uint8Array\" id=\"ref-for-idl-Uint8Array⑥\">Uint8Array</a></code>s.</p>" |
| 138 | + "html": "If <var>buffer</var> is not empty:", |
| 139 | + "rationale": "let", |
| 140 | + "steps": [ |
| 141 | + { |
| 142 | + "html": "<p>Let <var>arrays</var> be the result of splitting <var>buffer</var> into one or more non-empty pieces and converting them into <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-Uint8Array\" id=\"ref-for-idl-Uint8Array⑥\">Uint8Array</a></code>s.</p>" |
| 143 | + }, |
| 144 | + { |
| 145 | + "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate③\">For each</a> <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-Uint8Array\" id=\"ref-for-idl-Uint8Array⑦\">Uint8Array</a></code> <var>array</var> of <var>arrays</var>, <a data-link-type=\"dfn\" href=\"https://streams.spec.whatwg.org/#transformstream-enqueue\" id=\"ref-for-transformstream-enqueue③\">enqueue</a> <var>array</var> in <var>ds</var>’s <a data-link-type=\"dfn\" href=\"https://streams.spec.whatwg.org/#generictransformstream-transform\" id=\"ref-for-generictransformstream-transform⑦\">transform</a>.</p>" |
| 146 | + } |
| 147 | + ] |
142 | 148 | }, |
143 | 149 | { |
144 | | - "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate③\">For each</a> <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-Uint8Array\" id=\"ref-for-idl-Uint8Array⑦\">Uint8Array</a></code> <var>array</var> of <var>arrays</var>, <a data-link-type=\"dfn\" href=\"https://streams.spec.whatwg.org/#transformstream-enqueue\" id=\"ref-for-transformstream-enqueue③\">enqueue</a> <var>array</var> in <var>ds</var>’s <a data-link-type=\"dfn\" href=\"https://streams.spec.whatwg.org/#generictransformstream-transform\" id=\"ref-for-generictransformstream-transform⑦\">transform</a>.</p>" |
| 150 | + "html": "<p>If the end of the compressed input has not been reached, then throw a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror⑥\">TypeError</a></code>.</p>" |
145 | 151 | } |
146 | 152 | ] |
147 | 153 | } |
|
0 commit comments