@@ -321,6 +321,7 @@ const { port1, port2 } = new MessageChannel();
|
321 | 321 | port1.on('message', (msg) => { |
322 | 322 | console.log(msg); |
323 | 323 | }); |
| 324 | +port1.unref(); |
324 | 325 | |
325 | 326 | register('./my-hooks.mjs', { |
326 | 327 | parentURL: import.meta.url, |
@@ -341,6 +342,7 @@ const { port1, port2 } = new MessageChannel();
|
341 | 342 | port1.on('message', (msg) => { |
342 | 343 | console.log(msg); |
343 | 344 | }); |
| 345 | +port1.unref(); |
344 | 346 | |
345 | 347 | register('./my-hooks.mjs', { |
346 | 348 | parentURL: pathToFileURL(__filename), |
@@ -431,6 +433,7 @@ const { port1, port2 } = new MessageChannel();
|
431 | 433 | port1.on('message', (msg) => { |
432 | 434 | assert.strictEqual(msg, 'increment: 2'); |
433 | 435 | }); |
| 436 | +port1.unref(); |
434 | 437 | |
435 | 438 | register('./path-to-my-hooks.js', { |
436 | 439 | parentURL: import.meta.url, |
@@ -453,6 +456,7 @@ const { port1, port2 } = new MessageChannel();
|
453 | 456 | port1.on('message', (msg) => { |
454 | 457 | assert.strictEqual(msg, 'increment: 2'); |
455 | 458 | }); |
| 459 | +port1.unref(); |
456 | 460 | |
457 | 461 | register('./path-to-my-hooks.js', { |
458 | 462 | parentURL: pathToFileURL(__filename), |
|