jashkenas/coffeescript

`in` and splatted array

satyr opened this issue · 2 comments

$ coffee -e 'a = [6, 9]; console.log 9 in [3, a...]'
false

$ coffee -bpe 'a in [b, c...]'
a === b || a === c;

Nice catch. Should be easy to fix, since

_arr = [b, c...]
a in _arr

works.

Thanks, @satyr -- fixed in the above commit.