parse this shorthand as an ident with subscripts instead of a regular expression

This commit is contained in:
Sebastian McKenzie 2014-12-31 11:48:25 +11:00
parent d727f97497
commit 9e6e19eca8

View File

@ -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");