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