Sign in
webkit
/
WebKit
/
73c7b7b08069136c6d85537e1fc3427dd8fa1d44
/
.
/
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]"
);
}