fix missing this in acorn parseExprAtom

This commit is contained in:
Sebastian McKenzie 2015-04-05 03:26:41 +10:00
parent 9a3e36055d
commit a2a8ebbe95

View File

@ -250,7 +250,7 @@ pp.parseExprAtom = function(refShorthandDefaultPos) {
return this.finishNode(node, type)
case tt._yield:
if (this.inGenerator) unexpected()
if (this.inGenerator) this.unexpected()
case tt._do:
if (this.options.features["es7.doExpressions"]) {