Permalink
Browse files

add test for object extension literal

  • Loading branch information...
1 parent 581988e commit cec85edd8a88e7f32060a329e75d7094c9d31c0f @itrelease itrelease committed Mar 6, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/objects.coffee
View
@@ -269,3 +269,15 @@ test "#1961, #1974, regression with compound assigning to an implicit object", -
four: 4
eq obj.four, 4
+
+test "#2176, #1632, object extension literal", ->
+ obj =
+ x: 1
+
+ obj .=
+ y: ['a', 'b', 'c']
+ z: 3
+
+ eq obj.y.join(', '), 'a, b, c'
+
+ eq obj.z, 3

0 comments on commit cec85ed

Please sign in to comment.