[macruby-changes] [2155] MacRuby/branches/experimental/objc.m

source_changes at macosforge.org source_changes at macosforge.org
Sun Aug 2 21:21:43 PDT 2009


Revision: 2155
          http://trac.macosforge.org/projects/ruby/changeset/2155
Author:   lsansonetti at apple.com
Date:     2009-08-02 21:21:42 -0700 (Sun, 02 Aug 2009)
Log Message:
-----------
work around a crash while raising an objc exception from a ruby one

Modified Paths:
--------------
    MacRuby/branches/experimental/objc.m

Modified: MacRuby/branches/experimental/objc.m
===================================================================
--- MacRuby/branches/experimental/objc.m	2009-08-03 03:50:22 UTC (rev 2154)
+++ MacRuby/branches/experimental/objc.m	2009-08-03 04:21:42 UTC (rev 2155)
@@ -608,8 +608,14 @@
 {
     NSString *name = [NSString stringWithUTF8String:rb_obj_classname(exc)];
     NSString *reason = [(id)exc performSelector:@selector(message)];
+#if 0
+    // This is technically not required, and it seems that some exceptions
+    // don't like to be treated like NSDictionary values...
     NSDictionary *dict = [NSDictionary dictionaryWithObject:(id)exc
 	forKey:@"RubyException"];
+#else
+    NSDictionary *dict = nil;
+#endif
     return [NSException exceptionWithName:name reason:reason userInfo:dict];
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090802/30f2d2ea/attachment.html>


More information about the macruby-changes mailing list