repl: don't touch `require.cache`
Fixes #3226. Consider a production server that uses a REPL to debug. Creating the instance would wipe out the global cache of modules, and subsequent "require" calls in the server would be reloaded from disk. The REPL should observe only, without altering, its environment.
parent
841b7f53
Please register or sign in to comment