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); }