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