aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 06:25:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 06:25:21 +0000
commitd22e721284775c07c1dba75e4341235f84a7a30a (patch)
tree8806e0ddd9c4bd6512c2dfa60a1737fc2952fbb7 /vm_eval.c
parent78032eeab16d5058cbd7bb27bc840e95ad95ca84 (diff)
downloadruby-d22e721284775c07c1dba75e4341235f84a7a30a.tar.gz
vm_eval.c: set method_missing_reason
* vm_eval.c (send_internal): set method_missing_reason before invoking overriding method_missing method so that the default method_missing can achieve it properly. [ruby-core:68515] [Bug #10969] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 4b59d61c73..25d9f3251c 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -913,6 +913,7 @@ send_internal(int argc, const VALUE *argv, VALUE recv, call_type scope)
}
}
id = idMethodMissing;
+ th->method_missing_reason = MISSING_NOENTRY;
}
else {
argv++; argc--;