Fix spread attributes within elements inside expression containers

This commit is contained in:
Sebastian McKenzie 2014-11-20 19:46:47 +11:00
parent 82f88c459d
commit d3e987896c

View File

@ -3169,13 +3169,14 @@
if (tokType === _braceL) {
var tokStart1 = tokStart, tokStartLoc1 = tokStartLoc;
var origInXJSTag = inXJSTag;
inXJSTag = false;
var origInXJSTag = inXJSTag, origInXJSChildExpression = inXJSChildExpression;
inXJSTag = inXJSChildExpression = false;
next();
if (tokType !== _ellipsis) unexpected();
var node = parseMaybeUnary();
inXJSChildExpression = origInXJSChildExpression;
inXJSTag = origInXJSTag;
expect(_braceR);