New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression: "rescue *args" does not work #3567

Closed
tsahara opened this Issue Mar 30, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@tsahara
Member

tsahara commented Mar 30, 2017

This issue is same as #1786.

excs = [ NameError, ArgumentError ]
begin
  begin
    raise ArgumentError, "by raise"
  rescue *excs => e
    puts "rescue succeeded => #{e.inspect}"
  end
rescue => e
  puts "rescue failed! => #{e.inspect}"
end
% ruby -v a.rb
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
rescue succeeded => #<ArgumentError: by raise>

% bin/mruby a.rb
rescue failed! => a.rb:4: by raise (ArgumentError)

@matz matz closed this in e22f37a Apr 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment