[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69251] [Ruby trunk - Bug #10775] "break" from a block with nested begin-rescue became impossible
From:
nagachika00@...
Date:
2015-05-20 16:22:08 UTC
List:
ruby-core #69251
Issue #10775 has been updated by Tomoyuki Chikanaga.
Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
Backported into `ruby_2_2` branch at r50563.
----------------------------------------
Bug #10775: "break" from a block with nested begin-rescue became impossible
https://bugs.ruby-lang.org/issues/10775#change-52504
* Author: MISUMI Rize
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.3.0dev (2015-01-23 trunk 49389) [x86_64-darwin14]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
----------------------------------------
"break" from a block with nested begin-rescue became impossible.
Example(it is valid on Ruby 2.2.0, 2.1.5):
~~~ruby
2.times do
begin
raise
rescue
begin
raise
rescue
break
end
end
end
~~~
Output:
~~~
test.rb:8:in `rescue in rescue in block in <main>': break from proc-closure (LocalJumpError)
from test.rb:5:in `rescue in block in <main>'
from test.rb:2:in `block in <main>'
from test.rb:1:in `each'
from test.rb:1:in `<main>'
~~~
I wrote test and fix on GitHub. Please see the [pull request](https://github.com/ruby/ruby/pull/820).
--
https://bugs.ruby-lang.org/