summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testContinueWithLabel4.js
blob: 739726c7a2f071ac3dc4065c465e647f50bb5d35 (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
// bug 511575

Function.prototype.X = 42;

function ownProperties() {
    var props = {};
    var r = function () {};

    outer:
    for (var a in r) {
        for (var b in r) {
            if (a == b) {
                continue outer;
            }
        }
        print("SHOULD NOT BE REACHED");
        props[a] = true;
    }
    return props;
}

for (var i = 0; i < 12; ++i) {
    print(i);
    ownProperties();
}