blob: f85dbd5bd80ebc52fc4602e3e82b903d6ae368d2 [file] [log] [blame]
(function() {
var o = {f: 1, g: 2};
var p = {f: 1};
var n = 1000000;
for (var i = 0; i < n; ++i) {
o.f = i;
var tmp = o;
o = p;
p = tmp;
}
if (o.f != n - 2)
throw "Error: bad value of o.f: " + o.f;
if (p.f != n - 1)
throw "Error: vad value of p.f: " + p.f;
})();