Actions
Bug #21313
open
`it` in rescue/ensure on prism
Description
1.times do
raise
rescue
p it
#=> prism: false
#=> parse.y: 0
end
it
should return 0, shouldn't it?
demo:
Same on ensure
.
1.times do
raise
ensure
p it #=> prism: false
#=> parse.y: 0
end
1.times do
begin
raise
ensure
p it #=> prism: false
#=> parse.y: 0
end
end
Updated by hsbt (Hiroshi SHIBATA) 17 days ago
- Status changed from Open to Assigned
Updated by nicholasdower (Nick Dower) 14 days ago
I encountered this issue today and attempted a fix: https://github.com/ruby/ruby/pull/13360
I hope that was appropriate.
Actions
Like0
Like0Like0