bug1060387.js (327B)
1 function foo() { 2 var obj = new Object(); 3 var index = [-0, 2147483648, 1073741825]; 4 for (var j in index) { 5 testProperty(index[j]); 6 } 7 function testProperty(i) { 8 obj[i] = '' + i; 9 } 10 assertEq(JSON.stringify(obj), '{"0":"0","1073741825":"1073741825","2147483648":"2147483648"}'); 11 } 12 foo();