Skip to content

Use aborting WebAudio callbacks with panic unwinding - #1403

Open
bogusyogi wants to merge 1 commit into
RustAudio:masterfrom
bogusyogi:codex/1394-webaudio-unwind
Open

bogusyogi wants to merge 1 commit into
RustAudio:masterfrom
bogusyogi:codex/1394-webaudio-unwind

Conversation

@bogusyogi

Copy link
Copy Markdown

Use Closure::wrap_aborting for input, output & duplex WebAudio callbacks. This supports their mutable captured state when the application enables panic=unwind, while explicitly aborting if a callback panics. Documents that callback behavior.

Fixes #1394.

Validation: cargo +stable check --target wasm32-unknown-unknown --features wasm-bindgen --lib passed with both RUSTFLAGS="-C panic=abort" & RUSTFLAGS="-C panic=unwind" (fork job), commit 57b4bca7cb2e109baa650788ec88ccc2b676b153.

Prepared with AI assistance.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebAudio wasm build fails with wasm-bindgen panic=unwind closures

2 participants