Files
node/test/fixtures/errors/error_exit.snapshot
T
Ruben Bridgewater d3f79aa65d assert: allow printf-style messages as assertion error
Also add functions as allowed message input.
This allows to have leavy message computation to become cheaper.

PR-URL: https://github.com/nodejs/node/pull/58849
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2025-10-17 20:15:17 +00:00

20 lines
334 B
Plaintext

Exiting with code=1
node:internal*assert*utils:*
throw error;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 2
at Object.<anonymous> (*error_exit.js:*:*) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 1,
expected: 2,
operator: 'strictEqual',
diff: 'simple'
}
Node.js *