Update tools/generate-identifier-regex.js
So that it can also spit out the astral maps.
This commit is contained in:
parent
685b51e0ae
commit
013e48439f
@ -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 {
|
||||
|
||||
@ -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: [{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user