From 0cc5379caa6718abcfb4e2e1df3ebe88125837d2 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Thu, 30 Jun 2011 12:15:00 -0400 Subject: [PATCH] improved test for #1436 --- test/objects.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/objects.coffee b/test/objects.coffee index 158d3d7d..c956d82a 100644 --- a/test/objects.coffee +++ b/test/objects.coffee @@ -217,4 +217,7 @@ test "#1274: `{} = a()` compiles to `false` instead of `a()`", -> ok a test "#1436: `for` etc. work as normal property names", -> - doesNotThrow -> CoffeeScript.compile "foo.for = 'bar' of foo" + obj = {} + eq no, obj.hasOwnProperty 'for' + obj.for = 'foo' of obj + eq yes, obj.hasOwnProperty 'for'