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