[macruby-changes] [949] MacRuby/branches/experimental/roxor.cpp

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 16 22:16:30 PDT 2009


Revision: 949
          http://trac.macosforge.org/projects/ruby/changeset/949
Author:   lsansonetti at apple.com
Date:     2009-03-16 22:16:30 -0700 (Mon, 16 Mar 2009)
Log Message:
-----------
allow rb_vm_raise() to override the current exception, if it has not been catched

Modified Paths:
--------------
    MacRuby/branches/experimental/roxor.cpp

Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp	2009-03-17 04:58:27 UTC (rev 948)
+++ MacRuby/branches/experimental/roxor.cpp	2009-03-17 05:16:30 UTC (rev 949)
@@ -4997,8 +4997,6 @@
 void
 rb_vm_raise(VALUE exception)
 {
-    VALUE current_exception = GET_VM()->current_exception;
-    assert(current_exception == Qnil);
     rb_objc_retain((void *)exception);
     GET_VM()->current_exception = exception;
     void *exc = __cxa_allocate_exception(0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090316/802f3a30/attachment.html>


More information about the macruby-changes mailing list