Skip to content

Commit f7ebd21

Browse files
authored
Support wasm files without exported memory in scripts/fuzz_shell.js (#2210)
1 parent 03a8833 commit f7ebd21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/fuzz_shell.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ var instance = new WebAssembly.Instance(new WebAssembly.Module(binary), imports)
178178
// Handle the exports.
179179
var exports = instance.exports;
180180
exports = Bysyncify.instrumentExports(exports);
181-
var view = new Int32Array(exports.memory.buffer);
181+
if (exports.memory) {
182+
var view = new Int32Array(exports.memory.buffer);
183+
}
182184

183185
// Run the wasm.
184186
var sortedExports = [];

0 commit comments

Comments
 (0)