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