chaijs/chai — pull request #221 by laconbass (2013-12-05 07:06:22+00:00)
Title: Avoid error instantiation if possible on assertThrows (aka assert.throws). Closes #220

Given a constructor as function, try to get the error name from its prototype or itself before relying on the old behaviour. Closes #220