Sign in
webkit
/
WebKit
/
73d489c153bea24ba07ff63ba8b8ea61cc2bba7a
/
.
/
JSTests
/
microbenchmarks
/
oob-sane-chain-int32.js
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
);
}