Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
destructuring_in_catch_heads.js
blob: 6468ed76e851daaa99d4ba8ea7811191fe2f1025 [
file
] [
log
] [
blame
]
function
test
()
{
try
{
throw
[
1
,
2
];
}
catch
([
i
,
j
])
{
try
{
throw
{
k
:
3
,
l
:
4
};
}
catch
({
k
,
l
})
{
return
i
===
1
&&
j
===
2
&&
k
===
3
&&
l
===
4
;
}
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);