Sign in
webkit
/
WebKit
/
6ddf72b170615ecec95a6e91c205227cc12d556b
/
.
/
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
);
}