aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authorPikachuEXE <pikachuexe@gmail.com>2021-08-05 15:51:15 +0800
committerusa <usa@garbagecollect.jp>2021-11-24 16:47:15 +0900
commiteeabac4c55e0968e3664728bcce3c0eb23cd9321 (patch)
treec0ba580e13a87fef23c69f51185864f095549446 /eval_error.c
parente0b323632f5ea07e2646a2ec0b72f56093348265 (diff)
downloadruby-eeabac4c55e0968e3664728bcce3c0eb23cd9321.tar.gz
Do not allow Module#include to insert modules before the origin in the lookup chain
Module#include should only be able to insert modules after the origin, otherwise it ends up working like Module#prepend. This fixes the case where one of the modules in the included module chain is included in a module that is already prepended to the receiver. Fixes [Bug #7844] Backport of https://github.com/ruby/ruby/pull/3796 to 2.7
Diffstat (limited to 'eval_error.c')
0 files changed, 0 insertions, 0 deletions