summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug737737.js
blob: cf219d5b337ae732f4587379ec44db0d8f666f8b (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
// Binary: cache/js-dbg-32-e96d5b1f47b8-linux
// Flags: --ion-eager
//
function b(z) {
  switch (z) {
  default:
    primarySandbox = newGlobal()
  }
  return function(f, code) {
    try {
      evalcx(code, primarySandbox)
    } catch (e) {}
  }
}
function a(code) {
  gc();
  f = Function(code)
  c(f, code)
}
c = b()
a("\
  f2 = (function() {\
    a0 + o2.m;\
    a2.shift()\
  });\
  a2 = new Array;\
  Object.defineProperty(a2, 0, {\
    get: f2\
  });\
  o2 = {};\
  a0 = [];\
  a2.shift();\
  var x;\
")
a("a0 = x")
a("a2.shift()")