summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug732758.js
blob: 8196c3e034570b2ed9bf98b0ba90d7481b30acda (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
37
38
39
40
41
function tryItOut(code) {
    try {
        f = Function(code)
    } catch (r) {}
    v = tryRunning(f, code)
    x = String;
    for (e in v) {}
}
function tryRunning() {
    try {
        rv = f();
        return rv;
    } catch (r) {
        x = String;
    }
}
__proto__.__defineSetter__("x", function() {});
tryItOut("/()/;\"\"()");
tryItOut("}");
tryItOut("");
tryItOut("o");
tryItOut(")");
tryItOut("(");
tryItOut(")");
tryItOut("}");
tryItOut("}");
tryItOut(")");
tryItOut(")");
tryItOut("");
tryItOut("l;function u(){/j/}");
tryItOut("(");
tryItOut("t");
tryItOut("(");
tryItOut(")");
tryItOut("(");
tryItOut("");
tryItOut("{t:g}");
tryItOut("r");
tryItOut("p");
tryItOut("gc()");
tryItOut("/**/yield");