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:
dce8682
)
No need to have NativeModule.require('fs') in Module._findPath()
author
Shigeki Ohtsu
<ohtsu@iij.ad.jp>
Fri, 2 Dec 2011 01:17:19 +0000
(10:17 +0900)
committer
isaacs
<i@izs.me>
Tue, 20 Mar 2012 01:58:58 +0000
(18:58 -0700)
lib/module.js
patch
|
blob
|
history
diff --git
a/lib/module.js
b/lib/module.js
index 95514ecef73f63fa74ffe0877b2263884465a076..f6f6285fb6106e641ff9f6c0bf0a1ae129d8e88f 100644
(file)
--- a/
lib/module.js
+++ b/
lib/module.js
@@
-158,7
+158,6
@@
function tryExtensions(p, exts) {
Module._findPath = function(request, paths) {
- var fs = NativeModule.require('fs');
var exts = Object.keys(Module._extensions);
if (request.charAt(0) === '/') {