Source code

Revision control

Copy as Markdown

Other Tools

// |jit-test| --fast-warmup; --no-threads
var arr = [];
arr[0] = 1;
arr[NaN] = 0;
function foo(a) {
"use strict";
for (let i = 0; i < 7; i++) {
a = i % i;
counter += a >>> a;
try {
throw 3;
} catch {
counter += arr[a];
}
}
for (let i = 0; i < 100; i++) { }
}
let counter = 0;
for (var i = 0; i < 10; i++) {
foo();
}
assertEq(counter, 60);