summaryrefslogtreecommitdiff
path: root/src/node.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-10-12 11:54:45 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-10-12 11:54:45 -0700
commit0fcb3bd3a9f585562c5b421314c206c9438f6cef (patch)
treed56d283387dd3b26bd7a6c6e45fdb04ded241187 /src/node.js
parentc4636a578cee61a8a3b570146e168f7dffec9998 (diff)
downloadnode-new-0fcb3bd3a9f585562c5b421314c206c9438f6cef.tar.gz
Add .js to native script's filename
Diffstat (limited to 'src/node.js')
-rw-r--r--src/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.js b/src/node.js
index 647bb30cd8..094219b5a2 100644
--- a/src/node.js
+++ b/src/node.js
@@ -98,7 +98,7 @@ var module = (function () {
function loadNative (id) {
var m = new Module(id);
internalModuleCache[id] = m;
- var e = m._compile(natives[id], id);
+ var e = m._compile(natives[id], id+".js");
if (e) throw e; // error compiling native module
return m;
}