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:
bcb0cc0
)
repl: use path.resolve() for the module.filename
author
Nathan Rajlich
<nathan@tootallnate.net>
Tue, 13 Mar 2012 00:24:39 +0000
(17:24 -0700)
committer
Bert Belder
<bertbelder@gmail.com>
Tue, 13 Mar 2012 18:58:49 +0000
(19:58 +0100)
Windows was seeing: "C:\\path\\to\\cwd/repl"
lib/repl.js
patch
|
blob
|
history
diff --git
a/lib/repl.js
b/lib/repl.js
index
b522d7a
..
9c5feb2
100644
(file)
--- a/
lib/repl.js
+++ b/
lib/repl.js
@@
-59,7
+59,7
@@
var context;
exports.disableColors = process.env.NODE_DISABLE_COLORS ? true : false;
// hack for require.resolve("./relative") to work properly.
-module.filename = p
rocess.cwd() + '/repl'
;
+module.filename = p
ath.resolve('repl')
;
// hack for repl require to work properly with node_modules folders
module.paths = require('module')._nodeModulePaths(module.filename);