Skip to content

Commit 18f0f50

Browse files
committed
fixup! fixup! fixup! fixup! path: fix posix.relative() on Windows
1 parent b0c66d2 commit 18f0f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-path-resolve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const posixyCwd = common.isWindows ?
1313
(() => {
1414
const _ = process.cwd()
1515
.replaceAll(path.sep, path.posix.sep);
16-
return _.substr(_.indexOf(path.posix.sep));
16+
return _.slice(_.indexOf(path.posix.sep));
1717
})() :
1818
process.cwd();
1919

0 commit comments

Comments
 (0)