Sign in
webkit
/
WebKit
/
69084d7b0eae184a8076d683d5feee69bc80ce44
/
.
/
JSTests
/
stress
/
arrayify-to-structure-contradiction.js
blob: 22c80192fe0ad1af9ef5fab6cd6a6b73ea58085b [
file
] [
log
] [
blame
]
function
foo
(
array
,
v
,
p
)
{
array
[
0
]
=
10
;
if
(
p
)
v
=
"hello"
;
array
[
0
]
=
v
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
{
var
array
=
[
42
];
foo
(
array
,
43
,
false
);
if
(
array
[
0
]
!=
43
)
throw
"Error: bad result: "
+
array
;
}