Skip to content

Commit 39182c2

Browse files
committed
Editorial: link to Infra for "For each"
1 parent ec763b0 commit 39182c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ The <dfn>compress and enqueue a chunk</dfn> algorithm, given a {{CompressionStre
9191
1. If *chunk* is not a {{BufferSource}} type, then throw a {{TypeError}}.
9292
1. Let *buffer* be the result of compressing *chunk* with *cs*'s <a for=CompressionStream>format</a> and <a for=CompressionStream>context</a>.
9393
1. If *buffer* is empty, return.
94-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
95-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
94+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
95+
1. [=list/For each=] {{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
9696

9797
The <dfn>compress flush and enqueue</dfn> algorithm, which handles the end of data from the input {{ReadableStream}} object, given a {{CompressionStream}} object *cs*, runs these steps:
9898

9999
1. Let *buffer* be the result of compressing an empty input with *cs*'s <a for=CompressionStream>format</a> and <a for=CompressionStream>context</a>, with the finish flag.
100100
1. If *buffer* is empty, return.
101-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
102-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
101+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
102+
1. [=list/For each=] {{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
103103

104104

105105
# Interface `DecompressionStream` # {#decompression-stream}
@@ -126,16 +126,16 @@ The <dfn>decompress and enqueue a chunk</dfn> algorithm, given a {{Decompression
126126
1. If *chunk* is not a {{BufferSource}} type, then throw a {{TypeError}}.
127127
1. Let *buffer* be the result of decompressing *chunk* with *ds*'s <a for=DecompressionStream>format</a> and <a for=DecompressionStream>context</a>. If this results in an error, then throw a {{TypeError}}.
128128
1. If *buffer* is empty, return.
129-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
130-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
129+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
130+
1. [=list/For each=] {{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
131131

132132
The <dfn>decompress flush and enqueue</dfn> algorithm, which handles the end of data from the input {{ReadableStream}} object, given a {{DecompressionStream}} object *ds*, runs these steps:
133133

134134
1. Let *buffer* be the result of decompressing an empty input with *ds*'s <a for=DecompressionStream>format</a> and <a for=DecompressionStream>context</a>, with the finish flag.
135135
1. If the end of the compressed input has not been reached, then throw a {{TypeError}}.
136136
1. If *buffer* is empty, return.
137-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
138-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
137+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
138+
1. [=list/For each=] {{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
139139

140140

141141
# Privacy and security considerations # {#privacy-security}

0 commit comments

Comments
 (0)