Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f433fa4

Browse files
improved test for jashkenas#1436
1 parent 594ead0 commit f433fa4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/objects.coffee

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,7 @@ test "#1274: `{} = a()` compiles to `false` instead of `a()`", ->
217217
ok a
218218

219219
test "#1436: `for` etc. work as normal property names", ->
220-
doesNotThrow -> CoffeeScript.compile "foo.for = 'bar' of foo"
220+
obj = {}
221+
eq no, obj.hasOwnProperty 'for'
222+
obj.for = 'foo' of obj
223+
eq yes, obj.hasOwnProperty 'for'

0 commit comments

Comments
 (0)