regress-1884767.js (322B)
1 const { test } = wasmEvalText(`(module 2 (type $a (array i32)) 3 (func (export "test") (result anyref) 4 try (result anyref) 5 (array.new_default $a (i32.const 999999999)) 6 catch_all 7 unreachable 8 end 9 ) 10 )`).exports; 11 assertErrorMessage(() => test(), WebAssembly.RuntimeError, /too many array elements/);