Skip to content

Commit 9d72208

Browse files
committed
added a test (issue #1099)
1 parent 0497c07 commit 9d72208

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/operators.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ test "#768: `in` should preserve evaluation order", ->
184184
ok a() not in [b(),c()]
185185
eq 3, share
186186

187+
test "#1099: empty array after `in` should compile to `false`", ->
188+
eq 5 in [], false
189+
187190

188191
# Chained Comparison
189192

0 commit comments

Comments
 (0)