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