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
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?
joyeecheung
added
cli
Issues and PRs related to the Node.js command line interface.
and removed
riscv64
Issues and PRs related to the riscv64 architecture.
labels
Dec 5, 2024
joyeecheung
changed the title
node22 breaks pscript python modulenode -p resolves promises earlier in Node.js 22 than previous releases
Dec 5, 2024
EDIT: background from pscript test suite
On riscv64 the testsuite of the pscript python modules fails:=================================== FAILURES ===================================
______________________ TestFunctions.test_async_and_await ______________________
self = <test_parser2.TestFunctions object at 0x7f2d4a4f2e10>
E AssertionError: assert '42' not in 'Promise { 42 }'
E
E '42' is contained here:
E Promise { 42 }
E ? ++
pscript/tests/test_parser2.py:874: AssertionError
=========================== short test summary info ============================
FAILED pscript/tests/test_parser2.py::TestFunctions::test_async_and_await - A...
============= 1 failed, 223 passed, 2 skipped in 670.27s (0:11:10) =============
This is a regression from node21:
The text was updated successfully, but these errors were encountered: