783: corrected chained comparison precedence

This commit is contained in:
satyr
2010-10-23 23:51:22 +09:00
parent 6058910b49
commit 1335aee54b
7 changed files with 120 additions and 119 deletions

View File

@@ -9,6 +9,10 @@ ok 10 < 20 > 10
ok 50 > 10 > 5 is parseInt('5', 10)
eq 1, 1 | 2 < 3 < 4
ok 1 == 1 <= 1, '`x == y <= z` should become `x === y && y <= z`'
i = 0
ok 1 > i++ < 1, 'chained operations should evaluate each value only once'