Skip to content

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 28, 2025

C++ lacks try-finally, so clear the continuation store before calling
exports in the fuzzer, not after. This ensures we don't miss anything.

Also remove an entirely unused function, that was confusing
during debugging.

@kripken kripken requested a review from tlively August 28, 2025 17:08
FunctionResult run(Function* func, Module& wasm, ModuleRunner& instance) {
// Clear the continuation state before each run of an export. This is
// simpler than doing so in all the exceptional circumstances below.
instance.clearContinuationStore();
Copy link
Member

Choose a reason for hiding this comment

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

Alternatively, we could use a tiny RAII struct here and maintain the nice invariant that everything is cleaned before this function exits.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, done.

@kripken kripken merged commit 600ccd0 into WebAssembly:main Aug 28, 2025
16 checks passed
@kripken kripken deleted the cont.manyun branch August 28, 2025 23:26
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.

2 participants