summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 9d45c547a3d..9eac09f8ab6 100644
--- a/eval.c
+++ b/eval.c
@@ -7136,6 +7136,7 @@ rb_mod_define_method(argc, argv, mod)
body = bind_clone(body);
Data_Get_Struct(body, struct BLOCK, block);
block->frame.last_func = id;
+ block->frame.orig_func = id;
block->frame.last_class = mod;
node = NEW_BMETHOD(body);
}