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