From 2cfe7b847d986de3ca7b7191102b489913a7639e Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 15 Feb 2011 21:24:50 -0800 Subject: [PATCH] Closes GH-184 Clear require cache on repl .clear --- lib/repl.js | 1 + 1 file changed, 1 insertion(+) 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]; }