gkz / LiveScript

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.
http://livescript.net
MIT License
2.32k stars 155 forks source link

fix gkz/LiveScript#1027 #1034

Closed rhendric closed 6 years ago

rhendric commented 6 years ago

This fix depends on the implicit parentheses that get added to the key expression in a[i = 1] = 2. There may be other AST nodes that are currently transparent to whether they are in assign position that shouldn't be.

Fixes #1027.


This is a simple bug fix (and an important one, as it's a regression from 1.5), so I intend to merge in one week on or after April 4.