blob: e39b205037e6db2c2e4c60cbee25a1b4358b2539 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
var f = "f", g = "g";
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];
})();