Permalink
Browse files

Set method missing reason from cache entry

Fixes #1938
  • Loading branch information...
dbussink committed Oct 30, 2012
1 parent 63dd2a3 commit ccc3b0aff987b8122d1fcebf630f130eae27bdb9
Showing with 2 additions and 0 deletions.
  1. +2 −0 vm/inline_cache.cpp
View
@@ -628,6 +628,7 @@ namespace rubinius {
if(likely(ic)) {
args.unshift(state, cache->name);
+ state->vm()->set_method_missing_reason(entry->method_missing());
Executable* meth = entry->method();
Module* mod = entry->stored_module();
ic->hit();
@@ -676,6 +677,7 @@ namespace rubinius {
{
args.unshift(state, cache->name);
+ state->vm()->set_method_missing_reason(entry->method_missing());
Executable* meth = entry->method();
Module* mod = entry->stored_module();
ic->hit();

0 comments on commit ccc3b0a

Please sign in to comment.