{
foo = bar()
baz = foo
}
// and
{
foo = new bar()
baz = foo
}
both result in:
{
foo = baz = foo;
}
This is because after enforestation of either a CallExpression
or a NewExpression
the while loop in enforestLeftHandSideExpression
was either entered (in the case of NewExpression
) or continued (in the case of CallExpression
).
This PR fixes that by breaking or returning respectively.
Fixes #600 (closed) and fixes #591 (closed)