mirror of https://github.com/lukechilds/node.git
Browse Source
If `$NODE_PATH` contains trailing separators, `Module.globalPaths` will contains empty strings. When `Module` try to resolve a module's path, `path.resolve('', 'index.js')` will boil down to `$PWD/index.js`, which makes sub modules can access global modules and get unexpected result. PR-URL: https://github.com/iojs/io.js/pull/1488 Reviewed-By: Roman Reiss <me@silverwind.io>v2.0.2
committed by
Roman Reiss
2 changed files with 8 additions and 4 deletions
Loading…
Reference in new issue