blob: 5a3204fce63829ecbe4762e21cf6f2ee1521b9e4 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
var result = (function () {
function *fib()
{
let a = 1;
let b = 1;
while (true) {
yield a;
[a, b] = [b, a + b];
}
}
let value = 0;
for (let i = 0; i < 1e4; ++i) {
let f = fib();
for (let i = 0; i < 100; ++i) {
value = f.next().value;
}
}
return value;
}());
if (result !== 354224848179262000000)
throw new Error(`bad value:${result}`);