Sign in
webkit
/
WebKit
/
fd5c89692160ad7a4478776d3a7e8f4df224d2ad
/
.
/
JSTests
/
microbenchmarks
/
destructuring-arguments.js
blob: ef67baeaa22241dc9c3eb6da091edbbed334a873 [
file
] [
log
] [
blame
]
//@ runNoFTL
function
foo
()
{
var
[
a
,
b
]
=
arguments
;
return
a
-
b
;
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
+=
foo
(
42
,
i
);
if
(
result
!=
-
499957500000
)
throw
"Bad result: "
+
result
;