WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a92933e

Browse files
committed
First spec draft
1 parent e55e8e8 commit a92933e

File tree

1 file changed

+21
-30
lines changed

1 file changed

+21
-30
lines changed

spec.emu

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,27 @@
44
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/github.min.css">
55
<script src="./spec.js"></script>
66
<pre class="metadata">
7-
title: Proposal Title Goes Here
8-
stage: -1
9-
contributors: Your Name(s) Here
7+
title: Promise.isPromise
8+
stage: 0
9+
contributors: Mathieu Hofman
1010
</pre>
1111

12-
<emu-clause id="sec-demo-clause">
13-
<h1>This is an emu-clause</h1>
14-
<p>This is an algorithm:</p>
15-
<emu-alg>
16-
1. Let _proposal_ be *undefined*.
17-
1. If IsAccepted(_proposal_) is *true*, then
18-
1. Let _stage_ be *0*<sub>ℤ</sub>.
19-
1. Else,
20-
1. Let _stage_ be *-1*<sub>ℤ</sub>.
21-
1. Return ? ToString(_stage_).
22-
</emu-alg>
23-
</emu-clause>
12+
<emu-clause id="sec-control-abstraction-objects" number="27">
13+
<h1>Control Abstraction Objects</h1>
2414

25-
<emu-clause id="sec-is-accepted" type="abstract operation">
26-
<h1>
27-
IsAccepted (
28-
_proposal_: an ECMAScript language value
29-
): a Boolean
30-
</h1>
31-
<dl class="header">
32-
<dt>description</dt>
33-
<dd>Tells you if the proposal was accepted</dd>
34-
</dl>
35-
<emu-alg>
36-
1. If _proposal_ is not a String, or is not accepted, return *false*.
37-
1. Return *true*.
38-
</emu-alg>
39-
</emu-clause>
15+
<emu-clause id="sec-promise-objects" number="2">
16+
<h1>Promise Objects</h1>
17+
18+
<emu-clause id="sec-properties-of-the-promise-constructor" number="4">
19+
<h1>Properties of the Promise Constructor</h1>
20+
21+
<emu-clause id="sec-promise.ispromise">
22+
<h1>Promise.isPromise ( _arg_ )</h1>
23+
24+
<emu-alg>
25+
1. Return IsPromise(_arg_).
26+
</emu-alg>
27+
</emu-clause>
28+
</emu-clause>
29+
</emu-clause>
30+
</emu-clause>

0 commit comments

Comments
 (0)