GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix module customization hook examples · nodejs/node@e0d213d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • module.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/module.md‎

Copy file name to clipboardExpand all lines: doc/api/module.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ const { port1, port2 } = new MessageChannel();
321321
port1.on('message', (msg) => {
322322
console.log(msg);
323323
});
324+
port1.unref();
324325

325326
register('./my-hooks.mjs', {
326327
parentURL: import.meta.url,
@@ -341,6 +342,7 @@ const { port1, port2 } = new MessageChannel();
341342
port1.on('message', (msg) => {
342343
console.log(msg);
343344
});
345+
port1.unref();
344346

345347
register('./my-hooks.mjs', {
346348
parentURL: pathToFileURL(__filename),
@@ -431,6 +433,7 @@ const { port1, port2 } = new MessageChannel();
431433
port1.on('message', (msg) => {
432434
assert.strictEqual(msg, 'increment: 2');
433435
});
436+
port1.unref();
434437

435438
register('./path-to-my-hooks.js', {
436439
parentURL: import.meta.url,
@@ -453,6 +456,7 @@ const { port1, port2 } = new MessageChannel();
453456
port1.on('message', (msg) => {
454457
assert.strictEqual(msg, 'increment: 2');
455458
});
459+
port1.unref();
456460

457461
register('./path-to-my-hooks.js', {
458462
parentURL: pathToFileURL(__filename),

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.