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