Skip to content

Commit

Permalink
correct missing_scope, so that a rb_funcall() call that throws NoMeth…
Browse files Browse the repository at this point in the history
…odError can be catched by a rb_rescue2() call (zlib extension)

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@546 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Sep 3, 2008
1 parent 89dbe84 commit 5db564c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm_eval.c
Expand Up @@ -259,7 +259,7 @@ rb_call0(VALUE klass, VALUE recv, ID mid, int argc, const VALUE *argv,
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 {
Expand Down

0 comments on commit 5db564c

Please sign in to comment.