Sign in
webkit
/
WebKit
/
2e2cb00ac8a118644a070f63a7b5ac6a2db0e0aa
/
.
/
JSTests
/
es6
/
block-level_function_declaration.js
blob: 3d55198fd073c491c5a141579aeaeb6a08cfd430 [
file
] [
log
] [
blame
]
function
test
()
{
'use strict'
;
function
f
()
{
return
1
;
}
{
function
f
()
{
return
2
;
}
}
return
f
()
===
1
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);