diff options
author | Paddy Byers <paddy.byers@gmail.com> | 2011-11-23 03:49:18 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-02-01 05:50:16 +0400 |
commit | 7e0bf7d57de318f45a097e05644efa49beb65209 (patch) | |
tree | fd501d20c4184f6ac16e3b5557a24f32be43e074 /lib | |
parent | 840229a8251955d2b791928875f36d35127dcad0 (diff) |
Process symlinked shared library as .node
Diffstat (limited to 'lib')
-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 bbb1556bb82..893de411391 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() { |