This commit is contained in:
Jeremy Ashkenas
2013-03-17 19:27:16 +08:00
parent c44826acc7
commit 2f5b11b295
3 changed files with 18 additions and 3 deletions

View File

@@ -427,3 +427,14 @@ test "Throw should be usable as an expression.", ->
throw new Error 'failed'
catch e
ok e is 'up'
test "#2555, strange function if bodies", ->
success = -> ok true
failure = -> ok false
success() if do ->
yes
failure() if try
false