diff --git a/lib/repl.js b/lib/repl.js index 447192e950..4c769e73f3 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -45,6 +45,7 @@ function resetContext() { for (var i in global) context[i] = global[i]; context.module = module; context.require = require; + for (var i in require.cache) delete require.cache[i]; }