fix new keyword broken by recent refactoring (#9377)

This commit is contained in:
Daniel Tschinder
2019-01-21 22:25:37 -08:00
committed by GitHub
parent f6ee26c3da
commit af88e63dff
3 changed files with 156 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ export const keywords = Object.create(null, {
const: makeKeywordProps("const"),
while: makeKeywordProps("while", { isLoop }),
with: makeKeywordProps("with"),
new: makeKeywordProps("new"),
new: makeKeywordProps("new", { beforeExpr, startsExpr }),
this: makeKeywordProps("this", { startsExpr }),
super: makeKeywordProps("super", { startsExpr }),
class: makeKeywordProps("class", { startsExpr }),