We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nodejs
Learn more about funding links in repositories.
Report abuse
1 parent a6eede3 commit dd1f761Copy full SHA for dd1f761
node.gyp
@@ -385,6 +385,7 @@
385
'test/cctest/test_environment.cc',
386
'test/cctest/test_linked_binding.cc',
387
'test/cctest/test_node_api.cc',
388
+ 'test/cctest/test_path.cc',
389
'test/cctest/test_per_process.cc',
390
'test/cctest/test_platform.cc',
391
'test/cctest/test_report.cc',
src/path.cc
@@ -101,7 +101,7 @@ std::string PathResolve(Environment* env,
101
const size_t numArgs = paths.size();
102
auto cwd = env->GetCwd(env->exec_path());
103
104
- for (int i = numArgs - 1; i >= -1 && !resolvedAbsolute; i--) {
+ for (int i = numArgs - 1; i >= -1; i--) {
105
std::string path;
106
if (i >= 0) {
107
path = std::string(paths[i]);
0 commit comments