mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-26 15:18:11 -05:00
Fixes #1467. Catch now introduces its parameter to scope.
This commit is contained in:
committed by
Michael Ficarra
parent
73af3b17b1
commit
0f18dff464
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user