1 2 3 4 5 6 7 8 9 10
var counter = 0; var x = { toString: function() { counter++; } }; var y = {}; for (var i = 0; i < 50; i++) ++y[x]; // :FIXME: bug 672076 //assertEq(counter, 50);