Forum: IronRuby catch exception issue

Posted by 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.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.