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