From c420c89dbd84cc9b7460f25126dd873627e9accf Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 24 Jan 2010 14:39:32 -0800 Subject: [PATCH] Make assert.AssertionError instance of Error --- lib/assert.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/assert.js b/lib/assert.js index 70eda84ff7..4f6c46c9a7 100644 --- a/lib/assert.js +++ b/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) {