fixing an improper-js-output bug when using a loop-compiled inarray clause as part of a larger expression

This commit is contained in:
Jeremy Ashkenas
2010-06-27 13:27:51 -04:00
parent 24676eea71
commit af3b356d70
3 changed files with 10 additions and 10 deletions

View File

@@ -45,4 +45,8 @@ ok 'b' not of obj
ok 100 in [100, 200, 300]
array: [100, 200, 300]
ok 100 in array
ok 1 not in array
ok 1 not in array
list: [1, 2, 7]
result: if list[2] in [7, 10] then 100 else -1
ok result is 100