added a test for #1436, for etc. should work as normal property names

This commit is contained in:
Jann Horn
2011-06-19 10:49:19 +02:00
parent 25e7eeac8f
commit 9941c3f045

View File

@@ -215,3 +215,6 @@ test "#1274: `{} = a()` compiles to `false` instead of `a()`", ->
fn = -> a = true
{} = fn()
ok a
test "#1436: `for` etc. work as normal property names", ->
doesNotThrow -> CoffeeScript.compile "foo.for = 'bar' of foo"