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

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 25 13:18:58 PDT 2009


Revision: 2371
          http://trac.macosforge.org/projects/ruby/changeset/2371
Author:   lsansonetti at apple.com
Date:     2009-08-25 13:18:58 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
make sure we return the result of #method_missing when calling a private method

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

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2009-08-25 20:18:25 UTC (rev 2370)
+++ MacRuby/trunk/vm.cpp	2009-08-25 20:18:58 UTC (rev 2371)
@@ -2537,7 +2537,7 @@
     if ((node->flags & VM_METHOD_PRIVATE) && opt == 0) {
 	// Calling a private method with no explicit receiver OR an attribute
 	// assignment to non-self, triggering #method_missing.
-	method_missing(self, sel, argc, argv, METHOD_MISSING_PRIVATE);
+	return method_missing(self, sel, argc, argv, METHOD_MISSING_PRIVATE);
     }
 
     if ((node->flags & VM_METHOD_EMPTY) && arity.max == arity.min) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090825/d5f26008/attachment.html>


More information about the macruby-changes mailing list