Sign in
webkit
/
WebKit
/
00d9c36630c3b100532e86e2616da21d7c5e504a
/
.
/
JSTests
/
microbenchmarks
/
object-rest-destructuring.js
blob: a50098dad17ec3ab0b1ae98cf466bb6ec11f63e5 [
file
] [
log
] [
blame
]
(
function
()
{
var
obj
=
{
a
:
0
,
b
:
0
,
c
:
0
,
d
:
1
,
e
:
0
,
f
:
0
,
g
:
0
,
h
:
0
,
i
:
0
,
j
:
0
};
var
acc
=
0
;
for
(
var
i
=
0
;
i
<
1e5
;
i
++)
{
var
{
a
,
b
,
c
,
...
rest
}
=
obj
;
acc
+=
rest
.
d
;
}
if
(
acc
!==
1e5
)
throw
new
Error
(
"Bad assertion!"
);
})();