parse this shorthand as an ident with subscripts instead of a regular expression
This commit is contained in:
parent
d727f97497
commit
9e6e19eca8
3
acorn.js
3
acorn.js
@ -2563,10 +2563,11 @@
|
||||
return finishNode(node, "ThisExpression");
|
||||
|
||||
case _at:
|
||||
var start = storeCurrentPos();
|
||||
var node = startNode();
|
||||
next();
|
||||
node.object = { type: "ThisExpression" }
|
||||
node.property = parseExprSubscripts();
|
||||
node.property = parseSubscripts(parseIdent(), start);
|
||||
node.computed = false;
|
||||
return finishNode(node, "MemberExpression");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user