summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1060387.js
blob: 27d43a8c50adf43053d0d144b33585a2fef03c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function foo() {
    var obj = new Object();
    var index = [-0, 2147483648, 1073741825];
    for (var j in index) {
        testProperty(index[j]);
    }
    function testProperty(i) {
        obj[i] = '' + i;
    }
    assertEq(JSON.stringify(obj), '{"0":"0","1073741825":"1073741825","2147483648":"2147483648"}');
}
foo();