Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! path: fix posix.relative() on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Mar 19, 2021
1 parent b0c66d2 commit 18f0f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-path-resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const posixyCwd = common.isWindows ?
(() => {
const _ = process.cwd()
.replaceAll(path.sep, path.posix.sep);
return _.substr(_.indexOf(path.posix.sep));
return _.slice(_.indexOf(path.posix.sep));
})() :
process.cwd();

Expand Down

0 comments on commit 18f0f50

Please sign in to comment.