js/src/jit-test/tests/auto-regress/bug737737.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug737737.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +// Binary: cache/js-dbg-32-e96d5b1f47b8-linux
     1.5 +// Flags: --ion-eager
     1.6 +//
     1.7 +function b(z) {
     1.8 +  switch (z) {
     1.9 +  default:
    1.10 +    primarySandbox = newGlobal()
    1.11 +  }
    1.12 +  return function(f, code) {
    1.13 +    try {
    1.14 +      evalcx(code, primarySandbox)
    1.15 +    } catch (e) {}
    1.16 +  }
    1.17 +}
    1.18 +function a(code) {
    1.19 +  gc();
    1.20 +  f = Function(code)
    1.21 +  c(f, code)
    1.22 +}
    1.23 +c = b()
    1.24 +a("\
    1.25 +  f2 = (function() {\
    1.26 +    a0 + o2.m;\
    1.27 +    a2.shift()\
    1.28 +  });\
    1.29 +  a2 = new Array;\
    1.30 +  Object.defineProperty(a2, 0, {\
    1.31 +    get: f2\
    1.32 +  });\
    1.33 +  o2 = {};\
    1.34 +  a0 = [];\
    1.35 +  a2.shift();\
    1.36 +  var x;\
    1.37 +")
    1.38 +a("a0 = x")
    1.39 +a("a2.shift()")

mercurial