From 9e6e19eca8bf7107842cc0e6cdc340a181da1d1a Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 31 Dec 2014 11:48:25 +1100 Subject: [PATCH] parse this shorthand as an ident with subscripts instead of a regular expression --- acorn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acorn.js b/acorn.js index f5656d254e..319d4b1fe4 100644 --- a/acorn.js +++ b/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");