Fix some parsing edge cases for :: operator.

This commit is contained in:
Ingvar Stepanyan
2015-05-14 12:47:51 +03:00
parent fd8e94a90f
commit e05d7cf49a
3 changed files with 3 additions and 1 deletions

View File

@@ -214,7 +214,7 @@ pp.parseExprSubscripts = function(refShorthandDefaultPos) {
}
pp.parseSubscripts = function(base, start, noCalls) {
if (this.eat(tt.doubleColon)) {
if (!noCalls && this.eat(tt.doubleColon)) {
let node = this.startNodeAt(start)
node.object = base
node.callee = this.parseNoCallExpr()