diff --git a/lib/module.js b/lib/module.js index 499530e4de..6de0b294d4 100644 --- a/lib/module.js +++ b/lib/module.js @@ -469,11 +469,11 @@ Module._extensions['.json'] = function(module, filename) { }; -//Native extension for .node and OS-specific equivalents +//Native extension for .node Module._extensions['.node'] = function(module, filename) { process.dlopen(filename, module.exports); }; -Module._extensions['.dylib'] = Module._extensions['.node']; + // bootstrap main module. Module.runMain = function() {