repl: properly handle `repl.repl`
The repl property is set so that it's possible to inspect the instances own properties during runtime. This was never tested and it was also only exported in case the instance was started with `.start()` instead of using the constructor directly. In case that more than a single instance was created, all instances got access to the first instance. From now on the repl property is only exported in case the repl is starte as standalone program. PR-URL: https://github.com/nodejs/node/pull/30981 Reviewed-By:James M Snell <jasnell@gmail.com> Reviewed-By:
Rich Trott <rtrott@gmail.com>
parent
e65bed1b
Please register or sign in to comment