Fix : Matches Node.js behavior by prefixing "Assertion failed" in `console.assert` messages
Closed
AD
3mo ago+19+19+01234567890123456789-1-1-0123456789
Fixes -
What does this PR do?
- Code changes
This fixes the behavior of console.assert() so that it includes the "Assertion failed" prefix in output messages when a custom message is provided.
Example:
console.assert(false, "message");
Before:
message
After:
Assertion failed: message
How did you verify your code works?
- I included a test for the new code, or existing tests cover it