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

@@ -1,8 +1,3 @@
function f() {
const a;
}
function g() {
"use strict";
const a;
}