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