bug1880770.js (487B)
1 // Check proper handling of OOM during segments creation. 2 3 var x = {}; 4 Object.defineProperty(x, "", { 5 enumerable: true, 6 get: function () { 7 new WebAssembly.Instance( 8 new WebAssembly.Module( 9 wasmTextToBinary( 10 '(func $f (result f32) f32.const 0)(table (export "g") 1 funcref) (elem (i32.const 0) $f)' 11 ) 12 ) 13 ).exports.g 14 .get(0) 15 .type(WebAssembly, "", WebAssembly.Module, {}); 16 }, 17 }); 18 oomTest(function () { 19 Object.values(x); 20 });