mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-12 16:45:06 -05:00
added a test for #1436, for etc. should work as normal property names
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user