Skip to content

Commit 319612b

Browse files
committed
fixup! fixup! fixup! fixup! path: fix posix.relative() on Windows
1 parent a1b13b3 commit 319612b

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)