LocalJumpError exception raise unintentionally. #484

Closed
ghost opened this Issue Oct 2, 2012 · 0 comments

Projects

None yet

1 participant

@ghost
ghost commented Oct 2, 2012

problem has occurred from commit a3d7960

% cat raise.rb
class A
  def initialize
    raise "ERROR"
  end
end

begin
  t = A.new
rescue
  p "RESCUE"
end

p "test"

LocalJumpError raise in the mruby

% bin/mruby raise.rb
"RESCUE"
"test"
"test"
LocalJumpError: unexpected return

but in ruby, exception doesn't raise.

% ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174)
% ruby raise.rb
"RESCUE"
"test"
@matz matz closed this in 3a6b651 Oct 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment