Forum: IronRuby catch exception issue

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.