Skip to content

Commit

Permalink
Handle conversion failures in 'upon settling'.
Browse files Browse the repository at this point in the history
Fixes #782.
  • Loading branch information
Ms2ger committed Sep 3, 2019
1 parent 182b487 commit 39f9d51
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -8236,8 +8236,15 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
steps:

1. Let |onFulfilledSteps| be the following steps given argument |V|:
1. Let |value| be the result of [=converted to an IDL value|converting=] |V| to an IDL
value of type |T|.
1. Try running the following step:
1. Let |value| be the result of [=converted to an IDL value|converting=] |V| to an IDL
value of type |T|.

And then, if <a lt="an exception was thrown">an exception |exception| was thrown</a>:

1. If there are steps that are required to be run if the promise was rejected, let
|result| be the result of performing those steps, given |exception|.
1. [=ECMAScript/throw=] |exception|.
1. If there are no steps that are required to be run if the promise was fulfilled, then
return <emu-val>undefined</emu-val>.
1. Let |result| be the result of performing any steps that were required to be run if
Expand Down

0 comments on commit 39f9d51

Please sign in to comment.