michael@0: var x = {f: 1, g: 0}; michael@0: function f() { michael@0: for each (new f().nosuch.prop in x) michael@0: throw 'FAIL'; michael@0: } michael@0: michael@0: var e; michael@0: try { michael@0: f(); michael@0: } catch (exc) { michael@0: e = exc; michael@0: } michael@0: assertEq(e instanceof InternalError, true);