regress-1739330.js (415B)
1 try { 2 gczeal(4); 3 function a(b) { 4 binary = wasmTextToBinary(b) 5 c = new WebAssembly.Module(binary) 6 return new WebAssembly.Instance(c) 7 } 8 d = []; 9 let { newStruct } = a(` 10 (type $e (struct)) 11 (func (export "newStruct") 12 (result eqref) 13 struct.new $e 14 ) 15 `).exports 16 d.push(newStruct()); 17 gczeal(14, 7); 18 throw d; 19 } catch (d) { 20 assertEq(d instanceof Array, true); 21 }