Skip to content

Commit 7bcad32

Browse files
birtlesflackr
authored andcommitted
[web-animations-1] Mark ready and finished promise rejections as handled
Fixes w3c#4556.
1 parent e5e5f3b commit 7bcad32

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

web-animations-1/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,8 @@ The procedure to <dfn>reset an animation's pending tasks</dfn> for
889889
1. [=Apply any pending playback rate=] on |animation|.
890890
1. <a lt="reject a Promise">Reject</a> <var>animation</var>'s <a>current ready
891891
promise</a> with a DOMException named "AbortError".
892+
1. Set the \[[PromiseIsHandled]] internal slot of |animation|'s
893+
<a>current ready promise</a> to true.
892894
1. Let <var>animation</var>'s <a>current ready promise</a> be the result of
893895
<a lt="create a new resolved Promise">creating a new resolved Promise
894896
object</a> with value <var>animation</var> in the <a>relevant Realm</a> of
@@ -1725,6 +1727,8 @@ as follows:
17251727
<var>animation</var>.
17261728
1. <a lt="reject a Promise">Reject</a> the <a>current finished promise</a>
17271729
with a DOMException named "AbortError".
1730+
1. Set the \[[PromiseIsHandled]] internal slot of
1731+
the <a>current finished promise</a> to true.
17281732
1. Let <a>current finished promise</a> be
17291733
<a>a new promise</a> in the <a>relevant Realm</a> of
17301734
<var>animation</var>.

0 commit comments

Comments
 (0)