diff --git a/test/parallel/test-path-resolve.js b/test/parallel/test-path-resolve.js index 7fea7f56aae91e..eed54dba5a6663 100644 --- a/test/parallel/test-path-resolve.js +++ b/test/parallel/test-path-resolve.js @@ -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();