doc: clarify the multi REPL example · nodejs/node@ce1b5aa · GitHub
Skip to content

Commit ce1b5aa

Browse files
dario-piotrowiczRafaelGSS
authored andcommitted
doc: clarify the multi REPL example
clarify the example presented where multiple REPL instances are run in the same process by: - making its title unambiguous - clarifying that they share the same `global` object (which currently is a bit ambiguous/half implied) - making sure that they do share the same `global` object (via `useGlobal` set to `true`) - they delete the unix socket if present (so that people running the code twice don't get confused/annoyed that the second time it doesn't properly work) PR-URL: #57759 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 8ca56a8 commit ce1b5aa

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

doc/api/repl.md

Lines changed: 25 additions & 6 deletions

0 commit comments

Comments
 (0)