michael@0: a = b = c = d = 0; michael@0: this.__defineGetter__("e", function () { throw StopIteration; }) michael@0: try { michael@0: for each(f in this) {} michael@0: } catch (exc) { michael@0: assertEq(exc, StopIteration); michael@0: }