[macruby-changes] [2565] MacRuby/trunk/vm.cpp

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 18 16:24:48 PDT 2009


Revision: 2565
          http://trac.macosforge.org/projects/ruby/changeset/2565
Author:   lsansonetti at apple.com
Date:     2009-09-18 16:24:48 -0700 (Fri, 18 Sep 2009)
Log Message:
-----------
let's not forget to prepare the backtrace when raising the current exception

Modified Paths:
--------------
    MacRuby/trunk/vm.cpp

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2009-09-18 19:37:40 UTC (rev 2564)
+++ MacRuby/trunk/vm.cpp	2009-09-18 23:24:48 UTC (rev 2565)
@@ -4411,7 +4411,9 @@
 void
 rb_vm_raise_current_exception(void)
 {
-    assert(GET_VM()->current_exception() != Qnil);
+    VALUE exception = GET_VM()->current_exception();
+    assert(exception != Qnil);
+    rb_iv_set(exception, "bt", rb_vm_backtrace(100));
     __vm_raise(); 
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090918/dd34664e/attachment.html>


More information about the macruby-changes mailing list