Skip to content

path: fix toNamespacedPath on Windows

There was an inconsistency in the implementation of win32.toNamespacedPath(). It appears that the forward slash / wasn't consistently being converted to a backslash \. This PR fixes this issue by returning resolvedPath in the toNamespacedPath().

I've also added a test case to make sure that there will not be any regression.

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

Merge request reports

Loading