support other operators in abstract reference assignment expression - fixes #311
This commit is contained in:
@@ -34,6 +34,17 @@ exports.AssignmentExpression = function (node, parent, file, scope) {
|
||||
}
|
||||
}
|
||||
|
||||
if (node.operator !== "=") {
|
||||
value = t.binaryExpression(
|
||||
node.operator[0],
|
||||
util.template("abstract-expression-get", {
|
||||
PROPERTY: node.property,
|
||||
OBJECT: node.object
|
||||
}),
|
||||
value
|
||||
);
|
||||
}
|
||||
|
||||
var call = util.template("abstract-expression-set", {
|
||||
PROPERTY: left.property,
|
||||
OBJECT: left.object,
|
||||
|
||||
Reference in New Issue
Block a user