Javascript, ExpressionTreeBuilder::parseExpression is missing some operators


#1

While writing some JUCE Javascript i found that the *= operator wasn’t working. So i looked around and saw that it was missing from JavascriptEngine::ExpressionTreeBuilder::parseExpression.
Looking further i found that /= wasn’t working either, and a few more are actually declared at the top of the file but not used in parseExpression. Could you guys have a look and make sure all operators are fixed.

For now i added these myself:
if (matchIf (TokenTypes::timesEquals)) return parseInPlaceOpExpression (lhs);
if (matchIf (TokenTypes::divideEquals)) return parseInPlaceOpExpression (lhs);
if (matchIf (TokenTypes::moduloEquals)) return parseInPlaceOpExpression (lhs);


#2

Thanks for the heads-up, yep, will add those!


#3

Thanks!