diff options
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r-- | src/tools/fuzzing.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index 0a7128e3e..80945eb9e 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -375,6 +375,8 @@ private: hasher->type = ensureFunctionType(getSig(hasher), &wasm)->name; wasm.addExport( builder.makeExport(hasher->name, hasher->name, ExternalKind::Function)); + // Export memory so JS fuzzing can use it + wasm.addExport(builder.makeExport("memory", "0", ExternalKind::Memory)); } void setupTable() { |