doc: fix module customization hook examples · nodejs/node@e0d213d · GitHub
Skip to content

Commit e0d213d

Browse files
elliotgoodrichmarco-ippolito
authored andcommitted
doc: fix module customization hook examples
When running these examples, `node` fails to return as this `MessagePort` keeps the event loop active in the main thread unless it is `unref()`ed. Fixes: #52846 PR-URL: #53637 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent 2d8490f commit e0d213d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

doc/api/module.md

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)