Sign in
webkit
/
WebKit
/
2124e20feea540bb135c97ba7aea1d414c7ec680
/
.
/
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
;
}