diff options
author | Paddy Byers <paddy.byers@gmail.com> | 2011-11-22 23:49:18 +0000 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-01-31 17:50:16 -0800 |
commit | 7e0bf7d57de318f45a097e05644efa49beb65209 (patch) | |
tree | fd501d20c4184f6ac16e3b5557a24f32be43e074 | |
parent | 840229a8251955d2b791928875f36d35127dcad0 (diff) | |
download | node-new-7e0bf7d57de318f45a097e05644efa49beb65209.tar.gz |
Process symlinked shared library as .node
-rw-r--r-- | lib/module.js | 4 |
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() { |