test for #1234
This commit is contained in:
parent
29a44b84d5
commit
ab0b36a53f
|
@ -231,3 +231,14 @@ test "chained operations should evaluate each value only once", ->
|
|||
test "#891: incorrect inversion of chained comparisons", ->
|
||||
ok (true unless 0 > 1 > 2)
|
||||
ok (true unless (NaN = 0/0) < 0/0 < NaN)
|
||||
|
||||
test "#1234: Applying a splat to :: applies the splat to the wrong object", ->
|
||||
nonce = {}
|
||||
class A
|
||||
b: (arr) ->
|
||||
eq this.toString(), nonce
|
||||
toString: -> nonce
|
||||
|
||||
c = [0]
|
||||
|
||||
A::b c...
|
||||
|
|
Loading…
Reference in New Issue