Sign in
webkit
/
WebKit
/
a41b66a191b347ea334dedd7b5c142e5f0175fc3
/
.
/
JSTests
/
es6
/
destructuring_defaults_let_temporal_dead_zone.js
blob: fa5748f4ac6f58d829a3d855edda8a238d44e21f [
file
] [
log
] [
blame
]
function
test
()
{
var
{
a
,
b
=
2
}
=
{
a
:
1
};
try
{
eval
(
"let {c = c} = {};"
);
return
false
;
}
catch
(
e
){}
try
{
eval
(
"let {c = d, d} = {d:1};"
);
return
false
;
}
catch
(
e
){}
return
a
===
1
&&
b
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);