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