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