Update tools/generate-identifier-regex.js

So that it can also spit out the astral maps.
This commit is contained in:
Marijn Haverbeke
2015-03-05 11:15:04 +01:00
parent 685b51e0ae
commit 013e48439f
2 changed files with 3 additions and 1 deletions

View File

@@ -491,7 +491,7 @@ pp.parsePropertyName = function(prop) {
if (this.options.ecmaVersion >= 6) {
if (this.eat(tt.bracketL)) {
prop.computed = true
prop.key = this.parseExpression()
prop.key = this.parseMaybeAssign()
this.expect(tt.bracketR)
return
} else {