Open
Description
The definition provided for assert.ifError(value)
here contains value
, instead of AssertionError
.
Actual Definition
Throws value if value is not undefined or null. This is useful when testing the error argument in callbacks. The stack trace contains all frames from the error passed to ifError() including the potential new frames for ifError() itself.
The second word, should be
AssertionError
.
Changes
Changing this line in lib/assert.js
would fix this issue.
Metadata
Metadata
Assignees
Labels
No labels