From 4d6be458a00a642555e95055ff640daba59513f7 Mon Sep 17 00:00:00 2001 From: metagn Date: Wed, 24 May 2023 18:55:09 +0300 Subject: 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 --- changelogs/changelog_2_0_0.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'changelogs') diff --git a/changelogs/changelog_2_0_0.md b/changelogs/changelog_2_0_0.md index b15818ae6..11fa8cba3 100644 --- a/changelogs/changelog_2_0_0.md +++ b/changelogs/changelog_2_0_0.md @@ -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:" -- cgit 1.4.1-2-gfad0