Buffer() deprecation check throws TypeError: Cannot read properties of null (reading '0') inside new Promise() #54296
Labels
buffer
Issues and PRs related to the buffer subsystem.
regression
Issues related to regressions.
v20.x
v20.x Issues that can be reproduced on v20.x or PRs targeting the v20.x-staging branch.
Version
First seen in v20.15; No issue in v20.14
Platform
Subsystem
No response
What steps will reproduce the bug?
Just create a file and run:
How often does it reproduce? Is there a required condition?
It requires Node.js ≥ v20.15. Node.js v20.14 is working fine.
What is the expected behavior? Why is that the expected behavior?
It should not throw.
What do you see instead?
Additional information
The error occurs only when inside the callback of
new Promise()
. I looked at devtools and it says one item inside the stack hasgetFileName()
→null
.The text was updated successfully, but these errors were encountered: