url: return backslashes from fileURLToPath on Windows
Fixes: https://github.com/nodejs/node/issues/25265
Fixes url.fileURLToPath
to return backslash-separated paths instead of forward-separated paths on Windows. This is my first PR to the repo so any and all feedback is welcome.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines