mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
made catch optional
This commit is contained in:
@@ -23,8 +23,11 @@ result = try throw 'error' catch err then err.length
|
||||
|
||||
ok result is 5
|
||||
|
||||
try throw 'catch is optional'
|
||||
|
||||
# try/catch with empty clauses still compiles.
|
||||
try
|
||||
|
||||
try
|
||||
# nothing
|
||||
catch err
|
||||
@@ -39,4 +42,4 @@ try
|
||||
catch err
|
||||
finally
|
||||
|
||||
ok yes
|
||||
ok yes
|
||||
|
||||
Reference in New Issue
Block a user