Skip to content

Commit

Permalink
Editorial: Add a few well-known intrinsic objects (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu authored and bterlson committed Sep 7, 2017
1 parent 9bbc31c commit 54a0c8c
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,39 @@ <h1>Well-Known Intrinsic Objects</h1>
The initial value of the `prototype` data property of %Array% (<emu-xref href="#sec-properties-of-the-array-prototype-object"></emu-xref>)
</td>
</tr>
<tr>
<td>
%ArrayProto_entries%
</td>
<td>
`Array.prototype.entries`
</td>
<td>
The initial value of the `entries` data property of %ArrayPrototype% (<emu-xref href="#sec-array.prototype.entries"></emu-xref>)
</td>
</tr>
<tr>
<td>
%ArrayProto_forEach%
</td>
<td>
`Array.prototype.forEach`
</td>
<td>
The initial value of the `forEach` data property of %ArrayPrototype% (<emu-xref href="#sec-array.prototype.foreach"></emu-xref>)
</td>
</tr>
<tr>
<td>
%ArrayProto_keys%
</td>
<td>
`Array.prototype.keys`
</td>
<td>
The initial value of the `keys` data property of %ArrayPrototype% (<emu-xref href="#sec-array.prototype.keys"></emu-xref>)
</td>
</tr>
<tr>
<td>
%ArrayProto_values%
Expand Down Expand Up @@ -2338,6 +2371,50 @@ <h1>Well-Known Intrinsic Objects</h1>
The initial value of the `prototype` data property of %Promise%
</td>
</tr>
<tr>
<td>
%PromiseProto_then%
</td>
<td>
`Promise.prototype.then`
</td>
<td>
The initial value of the `then` data property of %PromisePrototype% (<emu-xref href="#sec-promise.prototype.then"></emu-xref>)
</td>
</tr>
<tr>
<td>
%Promise_all%
</td>
<td>
`Promise.all`
</td>
<td>
The initial value of the `all` data property of %Promise% (<emu-xref href="#sec-promise.all"></emu-xref>)
</td>
</tr>
<tr>
<td>
%Promise_reject%
</td>
<td>
`Promise.reject`
</td>
<td>
The initial value of the `reject` data property of %Promise% (<emu-xref href="#sec-promise.reject"></emu-xref>)
</td>
</tr>
<tr>
<td>
%Promise_resolve%
</td>
<td>
`Promise.resolve`
</td>
<td>
The initial value of the `resolve` data property of %Promise% (<emu-xref href="#sec-promise.resolve"></emu-xref>)
</td>
</tr>
<tr>
<td>
%Proxy%
Expand Down Expand Up @@ -31177,6 +31254,7 @@ <h1>Array.prototype.entries ( )</h1>
1. Let _O_ be ? ToObject(*this* value).
1. Return CreateArrayIterator(_O_, `"key+value"`).
</emu-alg>
<p>This function is the <dfn>%ArrayProto_entries%</dfn> intrinsic object.</p>
</emu-clause>

<!-- es6num="22.1.3.5" -->
Expand Down Expand Up @@ -31359,6 +31437,7 @@ <h1>Array.prototype.forEach ( _callbackfn_ [ , _thisArg_ ] )</h1>
1. Increase _k_ by 1.
1. Return *undefined*.
</emu-alg>
<p>This function is the <dfn>%ArrayProto_forEach%</dfn> intrinsic object.</p>
<emu-note>
<p>The `forEach` function is intentionally generic; it does not require that its *this* value be an Array object. Therefore it can be transferred to other kinds of objects for use as a method.</p>
</emu-note>
Expand Down Expand Up @@ -31469,6 +31548,7 @@ <h1>Array.prototype.keys ( )</h1>
1. Let _O_ be ? ToObject(*this* value).
1. Return CreateArrayIterator(_O_, `"key"`).
</emu-alg>
<p>This function is the <dfn>%ArrayProto_keys%</dfn> intrinsic object.</p>
</emu-clause>

<!-- es6num="22.1.3.14" -->
Expand Down Expand Up @@ -36954,6 +37034,7 @@ <h1>Promise.all ( _iterable_ )</h1>
1. IfAbruptRejectPromise(_result_, _promiseCapability_).
1. Return Completion(_result_).
</emu-alg>
<p>This function is the <dfn>%Promise_all%</dfn> intrinsic object.</p>
<emu-note>
<p>The `all` function requires its *this* value to be a constructor function that supports the parameter conventions of the `Promise` constructor.</p>
</emu-note>
Expand Down Expand Up @@ -37085,6 +37166,7 @@ <h1>Promise.reject ( _r_ )</h1>
1. Perform ? Call(_promiseCapability_.[[Reject]], *undefined*, &laquo; _r_ &raquo;).
1. Return _promiseCapability_.[[Promise]].
</emu-alg>
<p>This function is the <dfn>%Promise_reject%</dfn> intrinsic object.</p>
<emu-note>
<p>The `reject` function expects its *this* value to be a constructor function that supports the parameter conventions of the `Promise` constructor.</p>
</emu-note>
Expand All @@ -37104,6 +37186,7 @@ <h1>Promise.resolve ( _x_ )</h1>
1. Perform ? Call(_promiseCapability_.[[Resolve]], *undefined*, &laquo; _x_ &raquo;).
1. Return _promiseCapability_.[[Promise]].
</emu-alg>
<p>This function is the <dfn>%Promise_resolve%</dfn> intrinsic object.</p>
<emu-note>
<p>The `resolve` function expects its *this* value to be a constructor function that supports the parameter conventions of the `Promise` constructor.</p>
</emu-note>
Expand Down Expand Up @@ -37155,6 +37238,7 @@ <h1>Promise.prototype.then ( _onFulfilled_, _onRejected_ )</h1>
1. Let _resultCapability_ be ? NewPromiseCapability(_C_).
1. Return PerformPromiseThen(_promise_, _onFulfilled_, _onRejected_, _resultCapability_).
</emu-alg>
<p>This function is the <dfn>%PromiseProto_then%</dfn> intrinsic object.</p>

<!-- es6num="25.4.5.3.1" -->
<emu-clause id="sec-performpromisethen" aoid="PerformPromiseThen">
Expand Down

0 comments on commit 54a0c8c

Please sign in to comment.