Skip to content

Fix path.relative UNC path result

Rodrigo Muino Tomonari requested to merge github/fork/jasongin/resolveunc into master
Checklist
  • vcbuild test nosign (Windows) passes (Some tests failed, but they're unrelated: the failures repro without this change.)
  • tests are included
  • commit message follows commit guidelines
Affected core subsystem(s)

path

Description of change

When the result of a path.relative() is an absolute UNC path, it should include the leading backslashes.

Fixes: https://github.com/nodejs/node/issues/8444

Merge request reports

Loading