Issue #11108 has been updated by Yoshihisa Masuda.


The script below raises an unexpected "LocalJumpError".


~~~
%w(a b c).each { |c|
  p c
  begin
    raise
  rescue =e
    begin
      raise
    rescue =e
      break
    end
  end
}
~~~

----------------------------------------
Bug #11108: Unexpected LocalJumpError from "break" in nested begin block
https://bugs.ruby-lang.org/issues/11108#change-52270

* Author: Yoshihisa Masuda
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The script below raises an unexpected "LocalJumpError".

`%w(a b c).each { |c|
  p c
  begin
    raise
  rescue => e
    begin
      raise
    rescue => e
      break
    end
  end
}`




-- 
https://bugs.ruby-lang.org/