blob: 8ee45e86102085d4b797f74322c524a35e9096a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
function loop() {
var x;
for (var i = 0; i < 9; i++)
x = {1.5: 1};
return x;
}
loop(); // record
Object.prototype.__defineSetter__('1.5', function () { return 'BAD'; });
var x = loop(); // playback
assertEq(x["1.5"], 1);
|