summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug547911-2.js
blob: d29d3303d36b6fd9d63dce3607c16436cdde70f9 (plain)
1
2
3
4
5
6
7
var obj = {a: 0, b: 0, c: 0, d: 0, get e() { throw StopIteration; }};
try {
    for each (x in obj) {}
    FAIL;
} catch (exc) {
    assertEq(exc, StopIteration);
}