Re: [heycam/webidl] Handle conversion failures in 'upon settling'. (#791)

domenic commented on this pull request.



> @@ -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|.

|result| is unused. Should it be returned, instead of throwing exception?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/791#pullrequestreview-283107711

Received on Tuesday, 3 September 2019 16:12:43 UTC