mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
081989b6b7
commit
acea61ba8e
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user