michael@0: var x = 42; michael@0: function f() { michael@0: var a = [new Date, new Date, new Date, new Date, new Date]; michael@0: for (var i = 0; i < 5; i++) michael@0: a[i].m = function () {return x}; michael@0: for (i = 0; i < 4; i++) michael@0: if (a[i].m == a[i+1].m) michael@0: throw "FAIL!"; michael@0: } michael@0: f();