michael@0: var obj = {a: 0, b: 0, c: 0, d: 0, get e() { throw StopIteration; }}; michael@0: try { michael@0: for each (x in obj) {} michael@0: FAIL; michael@0: } catch (exc) { michael@0: assertEq(exc, StopIteration); michael@0: }