Sign in
webkit
/
WebKit
/
7c2d2b06cff0bde1c85f11402729e2b90317522d
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
destructuring
/
destructuring.es6
blob: 50e9b75bb3d32551038e68800f6363ff26544d4a [
file
] [
log
] [
blame
]
var
data
=
{
a
:
'foo'
,
b
:
{
c
:
'd'
},
arr
:
[
1
,
2
,
3
]
};
function
fn
()
{
var
{
a
,
b
:{
c
:
b
},
arr
:[,
c
]}
=
data
;
return
c
;
}
assertEqual
(
fn
(),
2
);
test
(
fn
);