Skip to content

Commit 6f6b99c

Browse files
tniessentargos
authored andcommitted
test: fix typos in whatwg-webstreams explanations
PR-URL: #40389 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 2de57ed commit 6f6b99c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/parallel/test-whatwg-webstreams-transfer.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const theData = 'hello';
115115
// Like the ReadableStream test above, this sets up a pipeline
116116
// through which the data flows...
117117
//
118-
// We start with WritableStream W1, which is transfered to port1.
118+
// We start with WritableStream W1, which is transferred to port1.
119119
// Doing so creates an internal ReadableStream R1 and WritableStream W2,
120120
// which are coupled together with MessagePorts P1 and P2.
121121
// The port1.onmessage callback receives WritableStream W2 and
@@ -169,25 +169,25 @@ const theData = 'hello';
169169
// We start with TransformStream T1, which creates ReadableStream R1,
170170
// and WritableStream W1.
171171
//
172-
// When T1 is transfered to port1.onmessage, R1 and W1 are individually
173-
// transfered.
172+
// When T1 is transferred to port1.onmessage, R1 and W1 are individually
173+
// transferred.
174174
//
175-
// When R1 is transfered, it creates internal WritableStream W2, and
175+
// When R1 is transferred, it creates internal WritableStream W2, and
176176
// new ReadableStream R2, coupled together via MessagePorts P1 and P2.
177177
//
178-
// When W1 is transfered, it creates internal ReadableStream R3 and
178+
// When W1 is transferred, it creates internal ReadableStream R3 and
179179
// new WritableStream W3, coupled together via MessagePorts P3 and P4.
180180
//
181181
// A new TransformStream T2 is created that owns ReadableStream R2 and
182182
// WritableStream W3. The port1.onmessage callback immediately transfers
183183
// that to port2.onmessage.
184184
//
185-
// When T2 is transfered, R2 and W3 are individually transfered.
185+
// When T2 is transferred, R2 and W3 are individually transferred.
186186
//
187-
// When R2 is transfered, it creates internal WritableStream W4, and
187+
// When R2 is transferred, it creates internal WritableStream W4, and
188188
// ReadableStream R4, coupled together via MessagePorts P5 and P6.
189189
//
190-
// When W3 is transfered, it creates internal ReadableStream R5, and
190+
// When W3 is transferred, it creates internal ReadableStream R5, and
191191
// WritableStream W5, coupled together via MessagePorts P7 and P8.
192192
//
193193
// A new TransformStream T3 is created that owns ReadableStream R4 and

0 commit comments

Comments
 (0)