mirror of https://github.com/nodejs/node.git
test: fix typo in MessageChannel test
PR-URL: https://github.com/nodejs/node/pull/41746 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
ef4c115cc8
commit
74de55533d
|
@ -6,7 +6,7 @@ const { MessageChannel } = require('worker_threads');
|
|||
|
||||
// Make sure that an infinite asynchronous .on('message')/postMessage loop
|
||||
// does not lead to a stack overflow and does not starve the event loop.
|
||||
// We schedule timeouts both from before the the .on('message') handler and
|
||||
// We schedule timeouts both from before the .on('message') handler and
|
||||
// inside of it, which both should run.
|
||||
|
||||
const { port1, port2 } = new MessageChannel();
|
||||
|
|
Loading…
Reference in New Issue