Commit da5cdc22 authored by Rich Trott's avatar Rich Trott
Browse files

assert: accommodate ES6 classes that extend Error

`assert.throws()` and `assert.doesNotThrow()` blow up with a `TypeError`
if used with an ES6 class that extends Error.

Fixes: https://github.com/nodejs/node/issues/3188
PR-URL: https://github.com/nodejs/node/pull/4166


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent dfc8bedb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment