[macruby-changes] [546] MacRuby/trunk/vm_eval.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 3 01:15:19 PDT 2008


Revision: 546
          http://trac.macosforge.org/projects/ruby/changeset/546
Author:   lsansonetti at apple.com
Date:     2008-09-03 01:15:17 -0700 (Wed, 03 Sep 2008)
Log Message:
-----------
correct missing_scope, so that a rb_funcall() call that throws NoMethodError can be catched by a rb_rescue2() call (zlib extension)

Modified Paths:
--------------
    MacRuby/trunk/vm_eval.c

Modified: MacRuby/trunk/vm_eval.c
===================================================================
--- MacRuby/trunk/vm_eval.c	2008-09-03 07:16:08 UTC (rev 545)
+++ MacRuby/trunk/vm_eval.c	2008-09-03 08:15:17 UTC (rev 546)
@@ -259,7 +259,7 @@
     DLOG("RCALL", "%c[<%s %p> %s] node=%p", class_isMetaClass((Class)klass) ? '+' : '-', class_getName((Class)klass), (void *)recv, (char *)sel, method);
     
     if (method == NULL) {
-	int missing_scope = scope == 2 ? NOEX_VCALL : scope == 3 ? NOEX_SUPER : NOEX_VCALL;
+	int missing_scope = scope == 2 ? NOEX_VCALL : scope == 3 ? NOEX_SUPER : 0;
 	return method_missing(recv, mid, argc, argv, missing_scope);
     }
     else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080903/cdb16a68/attachment.html 


More information about the macruby-changes mailing list