Closes #973. New is more careful around the do construct.

This commit is contained in:
Timothy Jones
2011-01-22 23:26:38 +13:00
parent dc6bd715b2
commit 2ca108820f
3 changed files with 14 additions and 7 deletions

View File

@@ -368,4 +368,5 @@ test "don't wrap \"pure\" statements in a closure", ->
#### Unusual `new` Usage
test "usage of `new` is careful about where the invocation parens end up", ->
ok 'object' is typeof new try Array
eq 'object', typeof new try Array
eq 'object', typeof new do -> ->