mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Closes #973. New is more careful around the do construct.
This commit is contained in:
@@ -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 -> ->
|
||||
|
||||
Reference in New Issue
Block a user