path.resolve
not normalizing paths in Node 23
#55448
Labels
duplicate
Issues and PRs that are duplicates of other issues or PRs.
Version
v23.0.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Welcome to Node.js v23.0.0.
Type ".help" for more information.
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
The trailing slash should be stripped, as noted in the docs:
Indeed the example in the docs themselves does not materialize in Node 23.
It actually returns
/tmp/file/
.What do you see instead?
The trailing slash is not stripped.
Additional information
No response
The text was updated successfully, but these errors were encountered: