blob: ef2de3e259b5a68f7f81e6bcf539da8ff0b26964 [file] [log] [blame]
function assert(b) {
if (!b)
throw new Error;
}
function baz(a, x) {
return a[x];
}
noInline(baz);
let a = [1.5, 2.5, , 3.5];
for (let i = 0; i < 10000000; ++i) {
assert(baz(a, 0) === 1.5);
assert(baz(a, 5) === undefined);
assert(baz(a, 2) === undefined);
}