fixed a bug where in malfunctioned in commaed lists

This commit is contained in:
satyr
2010-10-21 22:13:39 +09:00
parent 880c5c8083
commit 2f7c076a50
5 changed files with 16 additions and 20 deletions

View File

@@ -151,7 +151,10 @@ share = 0
a = -> share++ if share is 0
b = -> share++ if share is 1
c = -> share++ if share is 2
ok a() not in [b(),c()] and share is 3
ok a() not in [b(),c()] and share is 3
# `in` with cache and `__indexOf` should work in commaed lists
eq [Object() in Array()].length, 1
# Operators should respect new lines as spaced.