Fix infinite loop introduced by 685b51e

This commit is contained in:
Marijn Haverbeke 2015-03-20 17:49:19 +01:00
parent 013e48439f
commit 2ed8f8f2b8

View File

@ -402,6 +402,7 @@ lp.parseIdent = function() {
let name = this.tok.type === tt.name ? this.tok.value : this.tok.type.keyword
if (!name) return this.dummyIdent()
let node = this.startNode()
this.next()
node.name = name
return this.finishNode(node, "Identifier")
}