Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to handle DetachArrayBuffer throwing #1863

Closed
bzbarsky opened this issue May 10, 2019 · 1 comment
Closed

Need to handle DetachArrayBuffer throwing #1863

bzbarsky opened this issue May 10, 2019 · 1 comment

Comments

@bzbarsky
Copy link

See discussion in whatwg/html#4601 -- DetachArrayBuffer can throw if the ArrayBuffer is not detachable.

WebAudio kinda-implicitly invokes DetachArrayBuffer via a link hidden in https://webaudio.github.io/web-audio-api/#acquire-the-content and similarly in https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-decodeaudiodata

Ideally, the control flow and the fact that exceptions can get thrown here would be made clear, and there would be web platform tests for this. Worth checking what browsers actually do.

@bzbarsky
Copy link
Author

Oh, this was already filed as #1861

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

No branches or pull requests

1 participant