1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug798823.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +function g() { 1.5 + switch (0) { 1.6 + default: 1.7 + w = newGlobal(''); 1.8 + } 1.9 + return function(f, code) { 1.10 + try { 1.11 + evalcx(code, w) 1.12 + } catch (e) {} 1.13 + } 1.14 +} 1.15 + 1.16 +function f(code) { 1.17 + h(Function(code), code); 1.18 +} 1.19 +h = g() 1.20 +f("\ 1.21 + x = [];\ 1.22 + y = new Set;\ 1.23 + z = [];\ 1.24 + Object.defineProperty(x, 5, {\ 1.25 + get: (function(j) {}),\ 1.26 + });\ 1.27 + Object.defineProperty(z, 3, {});\ 1.28 + z[9] = 1;\ 1.29 + x.shift();\ 1.30 +"); 1.31 +f("\ 1.32 + z.every(function() {\ 1.33 + x.filter(function(j) {\ 1.34 + if (j) {} else {\ 1.35 + y.add()\ 1.36 + }\ 1.37 + });\ 1.38 + return 2\ 1.39 + })\ 1.40 +");