summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug728509.js
blob: 102770aa5b92439f1fd55e7ea78bfb86272e769e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Binary: cache/js-dbg-32-78fde7e54d92-linux
// Flags: -m -n -a
//
function g(code) {
    try {
        f = eval("(function(){" + code + "})")
    } catch (r) {}
    f()
    try {
        evalcx("(function(){return" + code + "})()")
    } catch (e) {}
}
g("")
g(" function(x,[]){NaN.x::c}()")