assert: add default operator to `assert.fail()`
This makes sure `assert.fail()` contains an operator instead of being undefined. On top of that it also fixes the `err.generatedMessage` property. Before, it was not always set correct. PR-URL: https://github.com/nodejs/node/pull/22694 Reviewed-By:John-David Dalton <john.david.dalton@gmail.com> Reviewed-By:
Matteo Collina <matteo.collina@gmail.com>
parent
0873d0ab
Please register or sign in to comment