The value to check. 要检查的值
True if the value is an Error object, false otherwise. 如果值为错误对象则返回 true,否则返回 false
This function uses cross-realm detection: it first attempts instanceof Error, which works within the same realm.
When that fails, it falls back to typeOf('error') to detect Error instances from cross-iframe or cross-VM contexts.
该函数使用跨环境检测:首先尝试 instanceof Error,在同一环境下此方法有效。
当检测失败时,回退到 typeOf('error') 以检测来自跨 iframe 或跨 VM 上下文的 Error 实例。
Check if a value is an Error object.
检查值是否为错误对象。