diff options
author | Felix Geisendörfer <felix@debuggable.com> | 2010-12-13 23:56:16 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-13 17:58:24 -0800 |
commit | e27418ca3f1f4700a457145de899c0d67343ee77 (patch) | |
tree | 5a39b1b50ad74354188f9f3850c9fe67b9bc8747 /deps | |
parent | a59483bd1d63b8477ec72b44a2386f0a566c04ef (diff) | |
download | node-new-e27418ca3f1f4700a457145de899c0d67343ee77.tar.gz |
Prefer require.cache over native module cache
This patch changes node's module loading behavior so that the
require.cache is always the first place to consider when loading a
module.
The motivation for this change is to help people who are writing
focused tests for their node.js applications, and need a mechanism
to inject test doubles to replace native node.js modules.
Diffstat (limited to 'deps')
0 files changed, 0 insertions, 0 deletions