bug1998895.js (319B)
1 oomTest(function() { 2 var x = new WebAssembly.Instance( 3 new WebAssembly.Module( 4 wasmTextToBinary( 5 '(module (func $g (result f32) f32.const 1)(table (export "table") 1 funcref)(elem (i32.const 0) $g))', 6 ), 7 ), 8 ).exports.table.get(0); 9 try { 10 x.apply(); 11 } catch (e) {} 12 x.call(); 13 });