Commit 14fcb1dd authored by Ilya Shaisultanov's avatar Ilya Shaisultanov Committed by Myles Borins
Browse files

assert: respect assert.doesNotThrow message.

Special handling to detect when user has supplied a custom message.
Added a test for user message.
When testing if `actual` value is an error use
`util.isError` instead of `instanceof`.

Fixes: https://github.com/nodejs/node/issues/2385
PR-URL: https://github.com/nodejs/node/pull/2407


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent dc1552e3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment