Sign in
webkit
/
WebKit
/
d4f65fcc3c5c5e5acf4da0072f42bc48017306dc
/
.
/
JSTests
/
microbenchmarks
/
get-by-val-out-of-bounds.js
blob: d17e6351b7033bf42e48be38d402000df61fc4fd [
file
] [
log
] [
blame
]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function
foo
(
a
)
{
return
a
[
1
];
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
{
var
result
=
foo
([
42
]);
if
(
result
!==
void
0
)
throw
"Error: bad value: "
+
result
;
}