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