Open
Description
Version
v24.0.1
Platform
Darwin macbook-air.taile5a6b.ts.net 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:34:14 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8122 arm64
Subsystem
fs
What steps will reproduce the bug?
touch a.txt
ln -s a.txt b.txt
node -e "console.log(require('fs').globSync('**/*.txt'))" // ok
node -e "Array.fromAsync(require('fs/promises').glob('**/*.txt'))" // fail
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
It should work and return those entries like globSync
What do you see instead?
TypeError: Cannot read properties of null (reading 'length')
at #iterateSubpatterns (node:internal/fs/glob:627:34)
at async Glob.glob (node:internal/fs/glob:540:9)
at async Object.glob (node:internal/fs/promises:1266:3)
Additional information
See:
Lines 624 to 627 in 5f841fb
Lines 140 to 148 in 5f841fb