Jeremy Evans 2026-05-15 19:01:42 +0000 (Fri, 15 May 2026)
New Revision: 9736b7ab56
https://github.com/ruby/ruby/commit/9736b7ab56
Log:
Prohibit super in refined module method
Before, this super could result in a call to a method in BasicObject
(or a module included in or prepended to BasicObject), or a call
to method_missing for the receiver's class.
This explicitly disallows the use of super in such a case, with a
specific error message.
Fixes [Bug #22071]
Modified files:
test/ruby/test_refinement.rb
vm_insnhelper.c