Skip to content

Commit 39f9d51

Browse files
committed
Handle conversion failures in 'upon settling'.
Fixes #782.
1 parent 182b487 commit 39f9d51

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: index.bs

+9-2
Original file line numberDiff line numberDiff line change
@@ -8236,8 +8236,15 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
82368236
steps:
82378237

82388238
1. Let |onFulfilledSteps| be the following steps given argument |V|:
8239-
1. Let |value| be the result of [=converted to an IDL value|converting=] |V| to an IDL
8240-
value of type |T|.
8239+
1. Try running the following step:
8240+
1. Let |value| be the result of [=converted to an IDL value|converting=] |V| to an IDL
8241+
value of type |T|.
8242+
8243+
And then, if <a lt="an exception was thrown">an exception |exception| was thrown</a>:
8244+
8245+
1. If there are steps that are required to be run if the promise was rejected, let
8246+
|result| be the result of performing those steps, given |exception|.
8247+
1. [=ECMAScript/throw=] |exception|.
82418248
1. If there are no steps that are required to be run if the promise was fulfilled, then
82428249
return <emu-val>undefined</emu-val>.
82438250
1. Let |result| be the result of performing any steps that were required to be run if

0 commit comments

Comments
 (0)