Sign in
webkit
/
WebKit
/
6ac1ae7345a9a50f3760d4fdf5f8c6512c4a9901
/
.
/
JSTests
/
stress
/
put-by-val-correctly-clobbers-exit-state-when-misprofiling-index.js
blob: f216122b4a021cbabc4f18618a0b6ff7f67d28b0 [
file
] [
log
] [
blame
]
let foo
=
$vm
.
createBuiltin
(`(
function
(
array
,
index
)
{
index
=
@idWithProfile
(
index
,
"SpecObject"
);
return
array
[
index
];
})`);
noInline
(
foo
);
for
(
let i
=
0
;
i
<
1e5
;
++
i
)
{
if
(
foo
([
1
,
2
],
0
)
!==
1
)
throw
new
Error
();
}