Skip to content

Empty the pending data slot when an exception is thrown in the AWP construction#2105

Merged
hoch merged 3 commits intoWebAudio:masterfrom
hoch:2096-clear-pending-pcd
Dec 2, 2019
Merged

Empty the pending data slot when an exception is thrown in the AWP construction#2105
hoch merged 3 commits intoWebAudio:masterfrom
hoch:2096-clear-pending-pcd

Conversation

@hoch
Copy link
Copy Markdown
Member

@hoch hoch commented Nov 22, 2019

Fixes #2096.

cc @karlt


Preview | Diff

@hoch hoch requested a review from rtoy November 22, 2019 21:58
Comment thread index.bs Outdated
using
<a href="https://www.w3.org/TR/html50/webappapis.html#the-errorevent-interface">ErrorEvent</a>
at <var>nodeReference</var>.
1. If any of following steps throws any exception:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phrasing here is a bit awkward. Perhaps it would sound better if you said:

If any of following steps throws any exception, perform these steps to handle the exception

Can't think of a good way to phrase this because "following steps" is a bit ambiguous. Is "following steps" the new steps you've added as a sub step of this one, or is it the other steps in this algorithm at the same level as this item?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rephrased a bit. PTAL again.

@hoch hoch merged commit e4f8da2 into WebAudio:master Dec 2, 2019
@hoch hoch deleted the 2096-clear-pending-pcd branch March 10, 2021 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lifetime of pending processor construction data and exceptions in instantiation of AudioWorkletProcessor

2 participants