Permalink
Browse files

Closes GH-184 Clear require cache on repl .clear

  • Loading branch information...
1 parent 0a51a6d commit 2cfe7b847d986de3ca7b7191102b489913a7639e @isaacs isaacs committed with ry Feb 16, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/repl.js
View
1 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];
}

0 comments on commit 2cfe7b8

Please sign in to comment.