Files
node-v0.x-archive/lib
Ryan Doenges 6101eb184d assert: put info in err.message, not err.name
4716dc6 made assert.equal() and related functions work better by
generating a better toString() from the expected, actual, and operator
values passed to fail(). Unfortunately, this was accomplished by putting
the generated message into the error's `name` property. When you passed
in a custom error message, the error would put the custom error into
`name` *and* `message`, resulting in helpful string representations like
"AssertionError: Oh no: Oh no".

This commit resolves that issue by storing the generated message in the
`message` property while leaving the error's name alone and adding
a regression test so that this doesn't pop back up later.

Closes #5292.
2013-04-18 15:08:35 -07:00
..
2011-03-14 17:37:05 -07:00
2013-04-05 12:05:58 -07:00
2013-04-08 16:17:38 -07:00
2013-04-11 11:06:20 -07:00
2011-03-14 17:37:05 -07:00
2013-04-18 00:54:57 +02:00
2013-03-06 14:31:22 +04:00
2011-03-14 17:37:05 -07:00
2013-04-08 09:33:56 -07:00
2013-04-11 11:06:20 -07:00
2013-02-22 16:30:27 -08:00
2013-01-16 16:53:11 +01:00
2012-06-28 10:14:03 -07:00
2013-02-28 23:11:47 +01:00
2013-03-06 11:44:29 -08:00
2012-03-03 23:48:57 -08:00
2013-03-08 18:56:31 -08:00