Assignable patterns.
This commit is contained in:
parent
9b697af803
commit
66e6bcd10f
2
acorn.js
2
acorn.js
@ -1550,7 +1550,7 @@
|
|||||||
if (tokType.isAssign) {
|
if (tokType.isAssign) {
|
||||||
var node = startNodeFrom(left);
|
var node = startNodeFrom(left);
|
||||||
node.operator = tokVal;
|
node.operator = tokVal;
|
||||||
node.left = left;
|
node.left = toAssignable(left);
|
||||||
next();
|
next();
|
||||||
node.right = parseMaybeAssign(noIn);
|
node.right = parseMaybeAssign(noIn);
|
||||||
checkLVal(left);
|
checkLVal(left);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user