summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug781364.js
blob: 99a944145ccd94b8f02e2a97af6a27a841c7778b (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
// Binary: cache/js-dbg-64-21b4797e4cb3-linux
// Flags: -m -a --ion-eager
//
k = m
function h() {
  switch (true) {
  default:
    x = newGlobal('')
  }
  return function(f, code) {
    try {
      evalcx(code, x)
    } catch (e) {}
  }
}
function m() {
  f()
}
function g(code) {
  f = new Function(code);
  k(f, code)
}
g("k=h()")
g("\
    a='';\
    Object.defineProperty(this,\"b\",{get:function(){a=this.d()}});\
    Object.defineProperty(this,\"c\",{get:function(){b}});\
    d=2;\
    b\
");
g("b");
g("b");
g("for(v of c);");
g("a=eval(\"function f(){}\");b")