blob: 3bb1bb1c36782ce6e2938ea80a61f5bca49e641d [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
var o = {a:1};
var p = {a:2, l:13};
var q = {a:3, b:3};
var r = {a:4, c:5};
var result = 0;
for (var i = 0; i < 1000000; ++i) {
result ^= o.a;
var tmp = o;
o = p;
p = q;
q = r;
r = tmp;
}
if (result != 0)
throw "Error: bad result: " + result;
})();