mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
added Stan's fix for try/finally without catch
This commit is contained in:
14
test/test_try_catch.coffee
Normal file
14
test/test_try_catch.coffee
Normal file
@@ -0,0 +1,14 @@
|
||||
result: try
|
||||
10
|
||||
finally
|
||||
15
|
||||
|
||||
ok result is 10
|
||||
|
||||
|
||||
result: try
|
||||
throw 'up'
|
||||
catch err
|
||||
err.length
|
||||
|
||||
ok result is 2
|
||||
Reference in New Issue
Block a user