[Ironruby-core] catch exception issue

evgeny vov lists at ruby-forum.com
Sat Mar 10 06:47:24 UTC 2012


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.

-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list