made catch optional

This commit is contained in:
satyr
2010-10-05 05:53:32 +09:00
parent ae55c70ac5
commit d85910c17f
6 changed files with 91 additions and 81 deletions

View File

@@ -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