Sign in
webkit
/
WebKit
/
ba185f33ea04d42647d419285be42e2f7c244fee
/
.
/
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"
);