Browse Source

Always init module paths

The previous cleanup patch broke module loading in the the REPL by
not initializing require.paths.
v0.7.4-release
Felix Geisendörfer 14 years ago
committed by Ryan Dahl
parent
commit
f61277ecb0
  1. 3
      src/node.js

3
src/node.js

@ -388,7 +388,6 @@
// bootstrap main module.
Module.runMain = function() {
Module._initPaths();
// Load the main module--the command line argument.
process.mainModule = new Module('.');
process.mainModule.load(process.argv[1]);
@ -414,6 +413,8 @@
return Module._load('repl', '.');
};
Module._initPaths();
// backwards compatibility
Module.Module = Module;

Loading…
Cancel
Save