js/src/jit-test/tests/ion/bug798823.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:f3b43b271f11
1 function g() {
2 switch (0) {
3 default:
4 w = newGlobal('');
5 }
6 return function(f, code) {
7 try {
8 evalcx(code, w)
9 } catch (e) {}
10 }
11 }
12
13 function f(code) {
14 h(Function(code), code);
15 }
16 h = g()
17 f("\
18 x = [];\
19 y = new Set;\
20 z = [];\
21 Object.defineProperty(x, 5, {\
22 get: (function(j) {}),\
23 });\
24 Object.defineProperty(z, 3, {});\
25 z[9] = 1;\
26 x.shift();\
27 ");
28 f("\
29 z.every(function() {\
30 x.filter(function(j) {\
31 if (j) {} else {\
32 y.add()\
33 }\
34 });\
35 return 2\
36 })\
37 ");

mercurial