LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
It seems that affected are only implicit for..in loops (for array) with guards with the in keyword inside and only when using case or | as a guard keyword, not when. Wrapping the guard's condition with parentheses also mitigates the issue.
Examples causing a compilation error:
Working examples:
It seems that affected are only implicit
for..in
loops (for array
) with guards with thein
keyword inside and only when usingcase
or|
as a guard keyword, notwhen
. Wrapping the guard's condition with parentheses also mitigates the issue.Possibly related to #923 (#925).