From 3a768db2bf7113b84a0701639d81a7008b007e61 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 5 Apr 2015 03:26:41 +1000 Subject: [PATCH] fix missing this in acorn parseExprAtom --- src/acorn/src/expression.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acorn/src/expression.js b/src/acorn/src/expression.js index d1d0b7457a..de02eb585b 100755 --- a/src/acorn/src/expression.js +++ b/src/acorn/src/expression.js @@ -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"]) {