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