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