summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug798823.js
blob: bd823c82f2be531f39c31e4e29b593063ef81dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function g() {
  switch (0) {
  default:
    w = newGlobal('');
  }
  return function(f, code) {
    try {
      evalcx(code, w)
    } catch (e) {}
  }
}

function f(code) {
  h(Function(code), code);
}
h = g()
f("\
    x = [];\
    y = new Set;\
    z = [];\
    Object.defineProperty(x, 5, {\
        get: (function(j) {}),\
    });\
    Object.defineProperty(z, 3, {});\
    z[9] = 1;\
    x.shift();\
");
f("\
    z.every(function() {\
        x.filter(function(j) {\
            if (j) {} else {\
                y.add()\
            }\
        });\
        return 2\
    })\
");