Sign in
webkit
/
WebKit
/
4ae349a8f8cbe5c18f6b8f2f24277ba5b8cf7e08
/
.
/
JSTests
/
microbenchmarks
/
inline-arguments-aliased-access.js
blob: 06808af55f30f273982b21c3094c93c26ed852b4 [
file
] [
log
] [
blame
]
function
foo
()
{
var
a
=
arguments
;
return
a
[
0
]
+
a
[
1
]
+
a
[
2
];
}
function
bar
(
a
,
b
,
c
)
{
return
foo
(
b
,
c
,
42
);
}
for
(
var
i
=
0
;
i
<
200000
;
++
i
)
{
var
result
=
bar
(
1
,
2
,
3
);
if
(
result
!=
47
)
throw
"Bad result: "
+
result
;
}