[macruby-changes] [4090] MacRuby/trunk/vm.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 13 14:08:17 PDT 2010
Revision: 4090
http://trac.macosforge.org/projects/ruby/changeset/4090
Author: lsansonetti at apple.com
Date: 2010-05-13 14:08:16 -0700 (Thu, 13 May 2010)
Log Message:
-----------
when popping an exception from a given index from compiled code, make sure we actually honor the index
Modified Paths:
--------------
MacRuby/trunk/vm.cpp
Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp 2010-05-13 03:33:22 UTC (rev 4089)
+++ MacRuby/trunk/vm.cpp 2010-05-13 21:08:16 UTC (rev 4090)
@@ -3812,6 +3812,7 @@
VALUE obj2 = RARRAY_AT(obj, j);
if (rb_obj_is_kind_of(current_exception, obj2)) {
active = 1;
+ break;
}
}
}
@@ -3830,7 +3831,7 @@
void
rb_vm_pop_exception(int pos)
{
- GET_VM()->pop_current_exception();
+ GET_VM()->pop_current_exception(pos);
}
extern "C"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100513/58bd3642/attachment.html>
More information about the macruby-changes
mailing list