Browse Source

Closes GH-184 Clear require cache on repl .clear

v0.7.4-release
isaacs 14 years ago
committed by Ryan Dahl
parent
commit
2cfe7b847d
  1. 1
      lib/repl.js

1
lib/repl.js

@ -45,6 +45,7 @@ function resetContext() {
for (var i in global) context[i] = global[i]; for (var i in global) context[i] = global[i];
context.module = module; context.module = module;
context.require = require; context.require = require;
for (var i in require.cache) delete require.cache[i];
} }

Loading…
Cancel
Save