js -r defines nodejs & program result undeclared if unavailable (#21849)

* js -r defines nodejs & program result undefined if unavailable

fixes #16985, fixes #16074

* fix

* add changelog too

* minor word change
This commit is contained in:
metagn
2023-05-24 18:55:09 +03:00
committed by GitHub
parent c7f2541914
commit 4d6be458a0
4 changed files with 19 additions and 7 deletions

View File

@@ -249,6 +249,10 @@
these deprecated aliases are likely not used anymore and it may make sense
to simply remove these statements.
- `getProgramResult` and `setProgramResult` in `std/exitprocs` are no longer
declared when they are not available on the backend. Previously it would call
`doAssert false` at runtime despite the condition being compile-time.
## Standard library additions and changes
[//]: # "Changes:"