mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Merge pull request #3322 from xixixao/issue1099
Fix #1099, remove in empty array optimization
This commit is contained in:
@@ -218,6 +218,10 @@ test "#1714: lexer bug with raw range `for` followed by `in`", ->
|
||||
test "#1099: statically determined `not in []` reporting incorrect result", ->
|
||||
ok 0 not in []
|
||||
|
||||
test "#1099: make sure expression tested gets evaluted when array is empty", ->
|
||||
a = 0
|
||||
(do -> a = 1) in []
|
||||
eq a, 1
|
||||
|
||||
# Chained Comparison
|
||||
|
||||
|
||||
Reference in New Issue
Block a user