Skip to content

Conversation

kripken
Copy link
Member

@kripken kripken commented Oct 3, 2025

fuzz_shell.js already allows linking in a second file from JS. This does the same for
wasm-opt's --fuzz-exec-before functionality.

To do that, track linked instances in execution results, and link and run
a second module there, if provided.

This will be useful in fuzzing cross-module code, which we atm do in
V8, but running in our interpreter will use our own assertions.

@kripken kripken requested a review from tlively October 3, 2025 23:17
LoggingExternalInterface interface(loggings, wasm);
// Get results of executing a module. Optionally, provide a second module to
// link with it (like fuzz_shell's second module).
void get(Module& wasm, Module* second = nullptr) {
Copy link
Member

Choose a reason for hiding this comment

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

Kind of weird to have a void return on a function called get, but I guess that's not directly related to this PR.

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