projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a51a6d
)
Closes GH-184 Clear require cache on repl .clear
author
isaacs
<i@izs.me>
Wed, 16 Feb 2011 05:24:50 +0000
(21:24 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 28 Feb 2011 01:07:08 +0000
(17:07 -0800)
lib/repl.js
patch
|
blob
|
history
diff --git
a/lib/repl.js
b/lib/repl.js
index
447192e
..
4c769e7
100644
(file)
--- 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];
}