joyent/node — pull request #2172 by paddybyers (2011-11-23 11:10:58+00:00)
Title: Tidy lib/module.js::_resolveFilename, and symlink handling for shared libraries

@isaacs: as discussed on IRC.

The first commit removes redundant vestigial complexity in _resolveFilename where it returned a pair of identical strings (corresponding to both a symbolic module ID and the resolved path to its implementation).

The second commit allows a symlink to link to a shared library implementation of a native addon, where the filename of the library complies with the host naming conventions for shared libraries (ie ".dylib" on darwin) without adding to the search complexity. This is done for darwin only.