We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f8a487 commit 081fce3Copy full SHA for 081fce3
node.gyp
@@ -398,6 +398,7 @@
398
'test/cctest/test_environment.cc',
399
'test/cctest/test_linked_binding.cc',
400
'test/cctest/test_node_api.cc',
401
+ 'test/cctest/test_path.cc',
402
'test/cctest/test_per_process.cc',
403
'test/cctest/test_platform.cc',
404
'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