summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug677957-2.js
blob: 7778dd02a7941f5bb91ccfce408b5663c6f996eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);