LiveScript icon indicating copy to clipboard operation
LiveScript copied to clipboard

Changing variables in callbacks doesn't work in REPL

Open alephyud opened this issue 9 years ago • 1 comments

I expect a to be equal to 2 after I assign it in the callback:

ls> a = 1
1
ls> process.next-tick -> a := 2
undefined
ls> a
1

Am I doing anything wrong?

alephyud avatar Nov 14 '15 17:11 alephyud

the REPL has some... scope weirdness

vendethiel avatar Nov 14 '15 18:11 vendethiel