Browse Source

Make assert.AssertionError instance of Error

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
c420c89dbd
  1. 1
      lib/assert.js

1
lib/assert.js

@ -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…
Cancel
Save