Actions
Bug #1729
closedReturning ignores ensure section when inside lambda
Description
=begin
The following code does not run the code inside the ensure section when run in Ruby 1.9.1. When run under Ruby 1.8.7, the ensure section is correctly run. Is there any reason for this change in behavior?
foo = lambda do
begin
return
ensure
puts "hi mom"
end
end
foo.call
=end
Actions
Like0
Like0Like0Like0