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