agilemd/typederror — pull request #2 by shane-tomlinson (2014-06-01 19:54:39+00:00)
Title: fix: Use `new Error` to establish the prototype chain.

* Setting `e.prototype = Error.prototype` leads to false equivalence when using the `instanceof` operator.

fixes #1