Files
scriptc/tests
Chris Tate 537dfbeb68 Evaluate assert.fail's value messages after declaring them, with Node's defaults
assert.fail with a message that is not a string read the message's
hidden locals before they were declared: the call stored the message and
its generated flag in temporaries ahead of the message's declarations,
so `assert.fail(new RangeError('re'))` crashed. Arguments computed from
the message now read it after the declarations.

assert.fail also follows Node's defaults for such values: null and
undefined report "Failed" with generatedMessage true, an Error is thrown
as is, and any other value, falsy ones included, becomes the message as
its string, with generatedMessage set to !value.
2026-10-24 09:37:24 -05:00
..
…
2026-10-20 17:56:44 -05:00