Forum: IronRuby catch exception issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6972e6cdd0b810132a78cc7dceb54406?d=identicon&s=25 evgeny vov (genywind)
on 2012-03-10 07:47
Hello,

We found issue in IronRuby core when running on Windows Phone 7
emulator.
Below is the code to reproduce the issue:

def test(*args);
  puts 'test';
  raise ArgumentError, 'Error';
end;

begin;
 test;
rescue => e;
 puts 'caught';
end;"

The problem is that rescue does not called and exception goes throw.

If we change test to:
def test();
  puts 'test';
  raise ArgumentError, 'Error';
end;

Exception caught fine. So the issue is with variable parameters list

Does anybody has any idea why it may happen?

Regards,
 Evgeny.
This topic is locked and can not be replied to.