Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/fuzz_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1693,9 +1693,9 @@ def optimize(name):

# prepare the list of exports to call. the format is
#
# exports:A,B,C
# exports:["A","B","C"]
#
exports_to_call = 'exports:' + ','.join(exports)
exports_to_call = 'exports:' + json.dumps(exports)

# get the output from the split modules, linking them using JS
# TODO run liftoff/turboshaft/etc.
Expand Down
7 changes: 6 additions & 1 deletion scripts/fuzz_shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ var fuzzSplit = false;
for (var i = 0; i < argv.length; i++) {
var curr = argv[i];
if (curr.startsWith('exports:')) {
exportsToCall = curr.substr('exports:'.length).split(',');
var payload = curr.substr('exports:'.length);
if (payload.startsWith('[')) {
exportsToCall = JSON.parse(payload);
} else {
exportsToCall = payload ? payload.split(',') : [];
}
argv.splice(i, 1);
i--;
} else if (curr == '--fuzz-split') {
Expand Down
Loading