mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
fixing an improper-js-output bug when using a loop-compiled inarray clause as part of a larger expression
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user