diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2015-05-27 20:11:30 +0300 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2015-05-30 17:36:09 +0300 |
commit | 5759722cfacf17cc79651c81801a5e03521db053 (patch) | |
tree | b4bb49403e7346dd166f64820ef7e2adff284a85 /src/tls_wrap.h | |
parent | 53e98cc1b44203147c0abdc03eb0e57e34c4274d (diff) |
src: fix module search path for preload modules
When the preload module is not a abs/relative path, we should use
the standard search mechanism of looking into the node_modules folders
outwards. The current working directory is deemed to be the 'requiring
module', i.e. parent. The search path starts from cwd outwards.
Fixes: https://github.com/nodejs/io.js/issues/1803
PR-URL: https://github.com/nodejs/io.js/pull/1812
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'src/tls_wrap.h')
0 files changed, 0 insertions, 0 deletions