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 committed by Michael Ficarra
parent d3e809da38
commit caa3d1ab5d
1 changed files with 3 additions and 0 deletions

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"