You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node -p resolves promises earlier in Node.js 22 than previous releases #56144
I can reproduce it on macOS + arm64 so I don't think it's a riscv64 issue.
I am not sure if this counts as a regression, however, there is no clear rule about when/whether the promises should be resolved before node -p prints something - or generally node -p has a lot of undocumented areas and undefined behaviors. It looks more like undefined behaviors that you should not rely on?
changed the title [-]node22 breaks pscript python module[/-][+]`node -p` resolves promises earlier in Node.js 22 than previous releases[/+]on Dec 5, 2024
Activity
joyeecheung commentedon Dec 5, 2024
It looks like what you are really reporting is something more like
I can reproduce it on macOS + arm64 so I don't think it's a riscv64 issue.
I am not sure if this counts as a regression, however, there is no clear rule about when/whether the promises should be resolved before
node -pprints something - or generallynode -phas a lot of undocumented areas and undefined behaviors. It looks more like undefined behaviors that you should not rely on?[-]node22 breaks pscript python module[/-][+]`node -p` resolves promises earlier in Node.js 22 than previous releases[/+]aduh95 commentedon Dec 5, 2024
It's not a bug, it's a feature: #52172
joyeecheung commentedon Dec 5, 2024
Closing since this is a semver-major feature.