Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

LocalJumpError exception raise unintentionally. #484

Closed
ghost opened this Issue · 0 comments

1 participant

@ghost

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.