fix missing this in acorn parseExprAtom
This commit is contained in:
parent
9a3e36055d
commit
a2a8ebbe95
@ -250,7 +250,7 @@ pp.parseExprAtom = function(refShorthandDefaultPos) {
|
|||||||
return this.finishNode(node, type)
|
return this.finishNode(node, type)
|
||||||
|
|
||||||
case tt._yield:
|
case tt._yield:
|
||||||
if (this.inGenerator) unexpected()
|
if (this.inGenerator) this.unexpected()
|
||||||
|
|
||||||
case tt._do:
|
case tt._do:
|
||||||
if (this.options.features["es7.doExpressions"]) {
|
if (this.options.features["es7.doExpressions"]) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user