diff options
-rw-r--r-- | scripts/fuzz_shell.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/fuzz_shell.js b/scripts/fuzz_shell.js index 4aafdacce..a596bc494 100644 --- a/scripts/fuzz_shell.js +++ b/scripts/fuzz_shell.js @@ -178,7 +178,9 @@ var instance = new WebAssembly.Instance(new WebAssembly.Module(binary), imports) // Handle the exports. var exports = instance.exports; exports = Bysyncify.instrumentExports(exports); -var view = new Int32Array(exports.memory.buffer); +if (exports.memory) { + var view = new Int32Array(exports.memory.buffer); +} // Run the wasm. var sortedExports = []; |