have parser trap const declaration without value (#2756)

fixes #2751
This commit is contained in:
kzc
2018-01-09 23:31:46 -05:00
committed by Alex Lam S.L
parent 1f3f8f25eb
commit 137cb73d1f
5 changed files with 8 additions and 13 deletions

View File

@@ -215,7 +215,7 @@ unused_block_decls: {
input: {
function foo() {
{
const x;
const x = 1;
}
{
let y;