Sign in
webkit
/
WebKit
/
f769e514944504ab0f19dbc22e4bc75842cebc49
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-arrayify-elimination.js
blob: aa478a98f56b5a2c534b7f5a025a0ffd7e7e95e8 [
file
] [
log
] [
blame
]
function
foo
(
a
,
i
,
j
,
k
)
{
a
[
i
]
=
42
;
a
[
j
]
=
43
;
a
[
k
]
=
44
;
}
for
(
var
i
=
0
;
i
<
1000
;
++
i
)
{
var
array
=
[];
if
(
i
%
2
)
array
.
unshift
(
52
);
foo
(
array
,
1
,
2
,
3
);
if
(
i
%
2
)
shouldBe
(
"array"
,
"[52,42,43,44]"
);
else
shouldBe
(
"array"
,
"[,42,43,44]"
);
}