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 {

View File

@ -14051,6 +14051,8 @@ testFail("yield v", "Unexpected token (1:6)", {ecmaVersion: 6});
testFail("yield 10", "Unexpected token (1:6)", {ecmaVersion: 6});
testFail("void { [1, 2]: 3 };", "Unexpected token (1:9)", {ecmaVersion: 6});
test("yield* 10", {
type: "Program",
body: [{