-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Open
Description
Version
26.0.0-pre
Platform
archlinux x86_64
Subsystem
fs
What steps will reproduce the bug?
mkdir -p folder/nested/
ln -s folder/nested/ ./symlink-dir
const fs = require("fs");
const assert = require("assert");
const a = fs.realpathSync('./symlink-dir/..');
const b = fs.realpathSync('./folder');
assert.equal(a, b);How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Expected behavior is same as native realpath:
$ realpath ./symlink-dir/..
/folder
$ realpath ./folder
/folder
What do you see instead?
AssertionError
Additional information
Refs: #60715, #60715 (comment)
Metadata
Metadata
Assignees
Labels
No labels