File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -47588,6 +47588,25 @@ <h1>
47588
47588
</emu-clause>
47589
47589
</emu-clause>
47590
47590
47591
+ <emu-clause id="sec-promise.try">
47592
+ <h1>Promise.try ( _callback_, ..._args_ )</h1>
47593
+ <p>When the `try` method is called with argument _callback_, the following steps are taken:</p>
47594
+ <emu-alg>
47595
+ 1. Let _C_ be the *this* value.
47596
+ 1. If _C_ is not an Object, throw a *TypeError* exception.
47597
+ 1. Let _promiseCapability_ be ? NewPromiseCapability(_C_).
47598
+ 1. Let _status_ be Completion(Call(_callback_, *undefined*, _args_)).
47599
+ 1. If _status_ is an abrupt completion, then
47600
+ 1. Perform ? Call(_promiseCapability_.[[Reject]], *undefined*, « _status_.[[Value]] »).
47601
+ 1. Else,
47602
+ 1. Perform ? Call(_promiseCapability_.[[Resolve]], *undefined*, « _status_.[[Value]] »).
47603
+ 1. Return _promiseCapability_.[[Promise]].
47604
+ </emu-alg>
47605
+ <emu-note>
47606
+ <p>This function expects its *this* value to be a constructor function that supports the parameter conventions of the Promise constructor.</p>
47607
+ </emu-note>
47608
+ </emu-clause>
47609
+
47591
47610
<emu-clause id="sec-promise.withResolvers">
47592
47611
<h1>Promise.withResolvers ( )</h1>
47593
47612
<p>This function returns an object with three properties: a new promise together with the `resolve` and `reject` functions associated with it.</p>
You can’t perform that action at this time.
0 commit comments