fix es6 rest parameters transformer comment
This commit is contained in:
parent
32606ddb93
commit
5d90c442cb
@ -46,7 +46,7 @@ function optimizeMemberExpression(node, parent, offset) {
|
||||
node.name = "arguments";
|
||||
prop.value += offset;
|
||||
prop.raw = String(prop.value);
|
||||
} else { // Identifier
|
||||
} else { // // UnaryExpression, BinaryExpression
|
||||
node.name = "arguments";
|
||||
newExpr = t.binaryExpression("+", prop, t.literal(offset));
|
||||
parent.property = newExpr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user