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