Catch exception issue

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs