Skip to content

Commit c420c89

Browse files
committed
Make assert.AssertionError instance of Error
1 parent 3669c75 commit c420c89

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/assert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ assert.AssertionError = function AssertionError (options) {
4747
Error.captureStackTrace(this, stackStartFunction);
4848
}
4949
};
50+
process.inherits(assert.AssertionError, Error);
5051

5152
assert.AssertionError.prototype.toString = function() {
5253
if (this.message) {

0 commit comments

Comments
 (0)