Closed NSilv closed 7 years ago
I think this is an issue w/ ++
filling the role of prefix and postfix operator already. @disnet, maybe an ordering issue in enforestExpressionLoop
?
Additionally, the >>=
bind example doesn't work if the first operand is an array:
operator >>= left 1 = (left, right) => {
return #`${left}.then(${right})`;
}
[1, 2, 3] >>= [4, 5, 6]; // compiles to nothing
3 >>= [4, 5, 6] // 3..then([4, 5, 6]);
@NSilv thanks for reporting! Got a fix coming in.
@gabejohnson hehe that's a tricky one, not actually a bug though. Just further proof that the no-semicolon style is objectively wrong :)
ASI converts it to:
operator >>= left 1 = (left, right) => {
return #`${left}.then(${right})`;
}[1, 2, 3] >>= [4, 5, 6]
the following code:
throws the following error: