You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, we were unnecessarily trying to determine if the passed
object was in fact a class which extends `Error`.
We don't actually care about this, really. We just want to know if the
`thrown` is an instance of the thing you passed.
Due to this, we can simplify by simply checking that the `errorLike` is
something with a `prototype` and assert that the `thrown` is an instance
of it.
0 commit comments