From ab0b36a53fa9d30bf1f7bb5f1696c7f362489453 Mon Sep 17 00:00:00 2001 From: Gerald Lewis Date: Wed, 10 Aug 2011 22:00:32 -0400 Subject: [PATCH] test for #1234 --- test/operators.coffee | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/operators.coffee b/test/operators.coffee index abdb9529..3556949c 100644 --- a/test/operators.coffee +++ b/test/operators.coffee @@ -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...