Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add test for object extension literal

  • Loading branch information...
commit cec85edd8a88e7f32060a329e75d7094c9d31c0f 1 parent 581988e
@itrelease itrelease authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/objects.coffee
View
12 test/objects.coffee
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.