aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--vm_eval.c9
2 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 6252bdd54d..ad9f6e1bd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Mar 2 16:18:30 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (vm_call0_body): calling method_missing method is
+ method_missing().
+
Wed Mar 2 15:13:33 2016 herwinw <herwin@quarantainenet.nl>
* lib/xmlrpc.rb: Removed broken parser named XMLScanStreamParser.
diff --git a/vm_eval.c b/vm_eval.c
index 7eda5c24d8..5e099d464b 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -222,14 +222,9 @@ vm_call0_body(rb_thread_t* th, struct rb_calling_info *calling, const struct rb_
goto again;
case VM_METHOD_TYPE_MISSING:
{
- VALUE new_args = rb_ary_new4(calling->argc, argv);
-
- rb_ary_unshift(new_args, ID2SYM(ci->mid));
th->passed_block = calling->blockptr;
- ret = rb_funcall2(calling->recv, idMethodMissing, calling->argc+1,
- RARRAY_CONST_PTR(new_args));
- RB_GC_GUARD(new_args);
- return ret;
+ return method_missing(calling->recv, ci->mid, calling->argc,
+ argv, MISSING_NOENTRY);
}
case VM_METHOD_TYPE_OPTIMIZED:
switch (cc->me->def->body.optimize_type) {