deno
b338b541 - fix(node/assert): throws not checking error instance (#24466)

Commit
2 years ago
fix(node/assert): throws not checking error instance (#24466) The implementation for `assert.throws()` from `node:assert` didn't work when the expected value was an `Error` constructor. In this case the thrown error should checked if it's an instance of said constructor. Fixes https://github.com/denoland/deno/issues/24464
Parents
Loading