path: fix posix.relative returns different results
Throw an error ERR_UNSUPPORTED_PLATFOMR
when direct use
path.posix.resolve
on Windows or direct use path.win32.resolve
on *nix.
Update docs, list win32 functions do not support direct use on *nix and posix functions do not support direct use on Windows.
Update tests, only run current platform type test.
Fixes: https://github.com/nodejs/node/issues/13683 Refs: https://github.com/nodejs/node/pull/13714
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc, path