Skip to content

Commit

Permalink
Normative: add Error.isError
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 9, 2024
1 parent 3e6f71c commit 912149d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -31212,6 +31212,16 @@ <h1>Properties of the Error Constructor</h1>
<li>has the following properties:</li>
</ul>

<emu-clause id="sec-error.iserror">
<h1>Error.isError ( _arg_ )</h1>
<p>This function performs the following steps when called:</p>
<emu-alg>
1. If _arg_ is not an Object, return *false*.
1. If _arg_ does not have an [[ErrorData]] internal slot, return *false*.
1. Return *true*.
</emu-alg>
</emu-clause>

<emu-clause id="sec-error.prototype">
<h1>Error.prototype</h1>
<p>The initial value of `Error.prototype` is the Error prototype object.</p>
Expand Down

0 comments on commit 912149d

Please sign in to comment.