summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug572229.js
blob: c45cea0b6c19c0d2068a22fec189136bbf75b820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Don't crash

function f(o, s) {
    var k = s.substr(0, 1);
    var c;
    for (var i = 0; i < 10; ++i) {
	c = k in o;
    }
    return c;
}

assertEq(f({ a: 66 }, 'abc'), true);