Sign in
webkit
/
WebKit
/
74a70b4650fbd719ba3c83ed49ad2fe62a266972
/
.
/
JSTests
/
es6
/
const_temporal_dead_zone.js
blob: aa0037cbee2a6127f816ace871228d80069b093a [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
=
(
function
(){
try
{
qux
;
}
catch
(
e
)
{
return
true
;
}}());
function
fn
()
{
passed
&=
qux
===
456
;
}
const
qux
=
456
;
fn
();
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);