From 912149d137ce2e9c7053a40279d5190cfa154798 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 8 Dec 2024 22:29:56 -0800 Subject: [PATCH] Normative: add `Error.isError` --- spec.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec.html b/spec.html index dc2f9a0a6d..3e6904417c 100644 --- a/spec.html +++ b/spec.html @@ -31212,6 +31212,16 @@

Properties of the Error Constructor

  • has the following properties:
  • + +

    Error.isError ( _arg_ )

    +

    This function performs the following steps when called:

    + + 1. If _arg_ is not an Object, return *false*. + 1. If _arg_ does not have an [[ErrorData]] internal slot, return *false*. + 1. Return *true*. + +
    +

    Error.prototype

    The initial value of `Error.prototype` is the Error prototype object.