Make assert.AssertionError instance of Error
This commit is contained in:
parent
3669c75f4d
commit
c420c89dbd
@ -47,6 +47,7 @@ assert.AssertionError = function AssertionError (options) {
|
||||
Error.captureStackTrace(this, stackStartFunction);
|
||||
}
|
||||
};
|
||||
process.inherits(assert.AssertionError, Error);
|
||||
|
||||
assert.AssertionError.prototype.toString = function() {
|
||||
if (this.message) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user