Sign in
webkit
/
WebKit
/
6a59c200745aa2ef26b1e56c44297ddf7c28ff78
/
.
/
JSTests
/
es6
/
destructuring_parenthesised_left-hand-side_is_a_syntax_error.js
blob: ec78510580878bbbf890aa4fe3521d93cb57cfc6 [
file
] [
log
] [
blame
]
function
test
()
{
var
a
,
b
;
({
a
,
b
}
=
{
a
:
1
,
b
:
2
});
try
{
eval
(
"({a,b}) = {a:3,b:4};"
);
}
catch
(
e
)
{
return
a
===
1
&&
b
===
2
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);