summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/extensions/iterator-in-catch.js
blob: 390b585e936af71b1b618b906664ad6f2013591d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Bug 350712

function iterator () {
    for (var i in []);
}

try {
    try {
        throw 5;
    }
    catch(error if iterator()) {
        assertEq(false, true);
    }
}
catch(error) {
  assertEq(error, 5);
}

if (typeof reportCompare === "function")
    reportCompare(true, true);