Sign in
webkit
/
WebKit
/
6ddf72b170615ecec95a6e91c205227cc12d556b
/
.
/
JSTests
/
es6
/
default_function_parameters_temporal_dead_zone.js
blob: ae97dd6402735393b4ef9788784e5965ffc36e6d [
file
] [
log
] [
blame
]
function
test
()
{
return
(
function
(
x
=
1
)
{
try
{
eval
(
"(function(a=a){}())"
);
return
false
;
}
catch
(
e
)
{}
try
{
eval
(
"(function(a=b,b){}())"
);
return
false
;
}
catch
(
e
)
{}
return
true
;
}());
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);