[Node 20] ESM Loaders no longer have process.argv
access
#48577
Labels
loaders
Issues and PRs related to ES module loaders
process.argv
access
#48577
Version
20.x
Platform
Darwin MacBook-Pro-2.local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
Run:
Output:
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior? Why is that the expected behavior?
Have access to
process.argv
What do you see instead?
Doesn't receive any arguments beyond node path
Additional information
This is a breaking change introduced by #44710 & it was not listed in the PR notes.
Additionally, this breaking change wasn't listed in the 20.x Changelog
As indicated by #44710 (comment), the knowledge of this impact is assumed based on the user understanding (& awareness) of loaders now being off main thread.
The text was updated successfully, but these errors were encountered: