Lines Matching refs:port1

45   const { port1, port2 } = new MessageChannel();
46 port1.onmessageerror = common.mustNotCall();
50 // port1 first, then again to port2, which reads the data.
60 // 3. ReadableStream R2 is passed to the port1.onmessage callback as the
62 // 4. Within port1.onmessage, we transfer ReadableStream R2 to port1, which
100 port1.onmessage = common.mustCall(({ data }) => {
103 port1.postMessage(data, [data]);
116 const { port1, port2 } = new MessageChannel();
117 port1.onmessageerror = common.mustNotCall();
149 port1.onmessage = common.mustCall(({ data }) => {
153 port1.postMessage(data, [data]);
166 const { port1, port2 } = new MessageChannel();
167 port1.onmessageerror = common.mustNotCall();
173 // We start with WritableStream W1, which is transferred to port1.
176 // The port1.onmessage callback receives WritableStream W2 and
201 port1.onmessage = common.mustCall(({ data }) => {
204 port1.postMessage(data, [data]);
217 const { port1, port2 } = new MessageChannel();
218 port1.onmessageerror = common.mustNotCall();
227 // When T1 is transferred to port1.onmessage, R1 and W1 are individually
237 // WritableStream W3. The port1.onmessage callback immediately transfers
251 // port1.onmessage then writes a chunk of data. That chunk of data
285 port1.onmessage = common.mustCall(({ data }) => {
289 port1.postMessage(data, [data]);
304 const { port1, port2 } = new MessageChannel();
316 port1.onmessage = ({ data }) => {
322 port1.close();
341 const { port1, port2 } = new MessageChannel();
364 port1.onmessage = common.mustCall(({ data }) => {
374 port1.close();
382 const { port1, port2 } = new MessageChannel();
397 port1.onmessage = common.mustCall(({ data }) => {
403 port1.close();
410 const { port1, port2 } = new MessageChannel();
423 port1.onmessage = common.mustCall(({ data }) => {
432 port1.close();
488 const { port1, port2 } = new MessageChannel();
490 port1.onmessage = common.mustCall(({ data }) => {
492 port1.close();
510 const { port1, port2 } = new MessageChannel();
512 port1.onmessage = common.mustCall(({ data }) => {
526 port1.close();
544 const { port1, port2 } = new MessageChannel();
546 port1.onmessage = common.mustCall(({ data }) => {
551 port1.close();