Panic when pending calls are run after a trap
Description
Wasmtime may panic if additional event loop tasks are allowed to run after the store is poisoned due to a trap and left in an inconsistent state.
Details
When Wasmtime generates a trap error due to e.g. misbehaving guest code or improper use if embedder APIs, it may leave the Store in an inconsistent and "poisoned" state. In most cases, attempting to continue to use that Store will result in more errors, but in this case, when a call that was started earlier is allowed to proceed after the trap, it was possible to trigger an assertion failure which panicked instead.
Impact
Embedder code which continues to use a Store after an earlier operation involving that store has errored may be affected.