CoffeeScriptRedux icon indicating copy to clipboard operation
CoffeeScriptRedux copied to clipboard

Assignment inside iterator scope

Open ef4 opened this issue 10 years ago • 1 comments

This:

for x in myList
  x ?= 1

throws Error: the variable "x" can't be assigned with ?= because it has not been defined.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ef4 avatar May 27 '15 03:05 ef4

https://github.com/michaelficarra/CoffeeScriptRedux/issues/299 looks like the same bug, although this example is broader -- no destructuring is needed to trigger the bug.

ef4 avatar May 27 '15 03:05 ef4