LiveScript icon indicating copy to clipboard operation
LiveScript copied to clipboard

for loops: continue on a label causes returned value to be undefined

Open farzher opened this issue 10 years ago • 1 comments

An array of 10 1s

do ->
  :outer for til 10
    if false => continue
    1

Doesn't try to return anything (undefined)

do ->
  :outer for til 10
    if false => continue outer
    1

farzher avatar Nov 01 '14 09:11 farzher

Seems like this here is to blame.

vendethiel avatar Jan 17 '18 11:01 vendethiel