Sign in
webkit
/
WebKit
/
247b0314320d499ae788b6ea993aa1d98e2d607e
/
.
/
JSTests
/
es6
/
const_temporal_dead_zone_strict_mode.js
blob: 12da3d084d848ece70b9f8bb72e5bdea5968c391 [
file
] [
log
] [
blame
]
function
test
()
{
'use strict'
;
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"
);