Back to Coffeescript

1.12.3

documentation/sections/changelog/1.12.3.md

2.7.0740 B
Original Source
releaseHeader('2017-01-24', '1.12.3', '1.12.2')
  • @ values can now be used as indices in for expressions. This loosens the compilation of for expressions to allow the index variable to be an @ value, e.g. do @visit for @node, @index in nodes. Within @visit, the index of the current node (@node) would be available as @index.
  • CoffeeScript’s patched Error.prepareStackTrace has been restored, with some revisions that should prevent the erroneous exceptions that were making life difficult for some downstream projects. This fixes the incorrect line numbers in stack traces since 1.12.2.
  • The //= operator’s output now wraps parentheses around the right operand, like the other assignment operators.