-
Notifications
You must be signed in to change notification settings - Fork 2
/
spec.emu
49 lines (41 loc) · 1.26 KB
/
spec.emu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<meta charset="utf8">
<pre class="metadata">
title: Error.isError
stage: 2.7
contributors: Jordan Harband
</pre>
<emu-clause id="sec-fundamental-objects" number="20">
<h1>Fundamental Objects</h1>
<emu-clause id="sec-error-objects" number="5">
<h1>Error Objects</h1>
<emu-clause id="sec-properties-of-the-error-constructor" number="2">
<h1>Properties of the Error Constructor</h1>
<emu-clause id="sec-error.iserror">
<h1>Error.isError ( _arg_ )</h1>
<emu-alg>
1. Return IsError(_arg_).
</emu-alg>
</emu-clause>
</emu-clause>
<emu-clause id="sec-abstract-operations-for-error-objects" number="8">
<h1>Abstract Operations for Error Objects</h1>
<emu-clause id="sec-iserror" type="abstract operation" number="2" class="ins">
<h1>
IsError(
_argument_: an Ecmascript language value,
): a Boolean
</h1>
<dl class="header">
<dt>description</dt>
<dd>It returns a boolean indicating whether the argument is a built-in Error instance or not.</dd>
</dl>
<emu-alg>
1. If _argument_ is not an Object, return *false*.
1. If _argument_ has an [[ErrorData]] internal slot, return *true*.
1. Return *false*.
</emu-alg>
</emu-clause>
</emu-clause>
</emu-clause>
</emu-clause>