summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaddy Byers <paddy.byers@gmail.com>2011-11-22 23:49:18 +0000
committerisaacs <i@izs.me>2012-01-31 17:50:16 -0800
commit7e0bf7d57de318f45a097e05644efa49beb65209 (patch)
treefd501d20c4184f6ac16e3b5557a24f32be43e074
parent840229a8251955d2b791928875f36d35127dcad0 (diff)
downloadnode-new-7e0bf7d57de318f45a097e05644efa49beb65209.tar.gz
Process symlinked shared library as .node
-rw-r--r--lib/module.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/module.js b/lib/module.js
index bbb1556bb8..893de41139 100644
--- a/lib/module.js
+++ b/lib/module.js
@@ -467,11 +467,11 @@ Module._extensions['.json'] = function(module, filename) {
};
-//Native extension for .node
+//Native extension for .node and OS-specific equivalents
Module._extensions['.node'] = function(module, filename) {
process.dlopen(filename, module.exports);
};
-
+Module._extensions['.dylib'] = Module._extensions['.node'];
// bootstrap main module.
Module.runMain = function() {