« Previous | Next » 

Revision 837df70b

ID837df70b7576089f808ab3acf626cb06e430f4f6
Parent 841b7f53
Child cdcac49c

Added by Nathan Rajlich over 11 years ago

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.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences