diff --git a/scripts/fuzz_shell.js b/scripts/fuzz_shell.js index 217727c9134..08864dfc713 100644 --- a/scripts/fuzz_shell.js +++ b/scripts/fuzz_shell.js @@ -174,6 +174,15 @@ var imports = { }, }; +// If Tags are available, add the import j2wasm expects. +if (typeof WebAssembly.Tag !== 'undefined') { + imports['imports'] = { + 'j2wasm.ExceptionUtils.tag': new WebAssembly.Tag({ + 'parameters': ['externref'] + }), + }; +} + imports = Asyncify.instrumentImports(imports); // Create the wasm.