Sign in
webkit
/
WebKit
/
73c7b7b08069136c6d85537e1fc3427dd8fa1d44
/
.
/
LayoutTests
/
js
/
slow-stress
/
script-tests
/
destructuring-arguments-length.js
blob: 5f8be4d18289968b4cb7fd9d54d3ec168866a1e6 [
file
] [
log
] [
blame
]
//@ runNoFTL
function
foo
()
{
var
{
0
:
i
,
1
:
j
,
length
}
=
arguments
;
return
i
+
j
+
length
;
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
+=
foo
(
i
,
1
);
if
(
result
!=
500002500000
)
throw
"Bad result: "
+
result
;