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