console: move the inspector console wrapping in a separate file
Move the wrapping of the inspector console in a separate file
for clarity. In addition, save the original console from the
VM explicitly via an exported property
`require('internal/console/inspector').consoleFromVM`
that `require('inspector').console` can alias to it later,
instead of hanging the original console onto `per_thread.js`
during bootstrap and counting on that `per_thread.js`
only gets evaluated once and gets cached.
PR-URL: https://github.com/nodejs/node/pull/24709
Reviewed-By:
Gus Caplan <me@gus.host>
Reviewed-By:
Anna Henningsen <anna@addaleax.net>
Reviewed-By:
James M Snell <jasnell@gmail.com>
parent
cfc2559e
Please register or sign in to comment