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