JavaScript now has Error.isError(value), a realm-safe way to answer, “Is this actually an error?”