Revision: 546 http://trac.macosforge.org/projects/ruby/changeset/546 Author: lsansonetti@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 {