summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug593580.js
blob: e6155b9c90809753228549adedf292522da96be1 (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
// Binary: cache/js-dbg-64-60af58b42567-linux
// Flags:
//
realEval = eval
f = eval("(function(){for(let x in[\
         __defineGetter__(\"\",function(){})\
         ,__defineGetter__(\"\
         functional\
         \",Math.pow)\
         ]){\
         (__defineSetter__(\"\",function(){}))\
         ()\
         }})")
try {
    f()
} catch (r) {
    delete this.eval
    delete this.Math
    eval = realEval
    e = this.toSource
}
f = eval("(function(){(__defineSetter__(\"\
         functional\
         \",(function(){return{t:function(){}}})))()})")
try {
    f()
} catch (r) {
    eval()
}