Fixes #1467. Catch now introduces its parameter to scope.

This commit is contained in:
Timothy Jones
2011-06-26 02:34:52 +12:00
committed by Michael Ficarra
parent 73af3b17b1
commit 0f18dff464
3 changed files with 8 additions and 1 deletions

View File

@@ -26,3 +26,9 @@ test "siblings of variadic arguments shouldn't break out.", ->
oops = (x,args...) ->
oops(20, 1,2,3)
eq x, 10
test "catch statements should introduce their argument to scope", ->
try throw ''
catch e
do -> e = 5
eq 5, e