Skip to content

Commit 3296e60

Browse files
authored
[wasm-split] Fix Split fuzzer (WebAssembly#7923)
WebAssembly#7096 refactored things and broke the un-enabled wasm-split fuzzer.
1 parent 8dca239 commit 3296e60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/fuzz_shell.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,11 @@ if (secondBinary) {
419419

420420
// Compile and instantiate a wasm file.
421421
function build(binary) {
422+
if (secondBinary) {
423+
// Provide the primary module's exports to the secondary.
424+
imports['primary'] = exports;
425+
}
426+
422427
var module = new WebAssembly.Module(binary);
423428

424429
var instance;

0 commit comments

Comments
 (0)