test/codegen.rb: call #remove_const via #__send__ to skip private check

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-02-14 09:29:17 +09:00
parent f82cd188b0
commit 7653bdd05e
+1 -1
View File
@@ -178,7 +178,7 @@ assert('register window of calls (#3783)') do
# NODE_REGX
assert_raise(NoMethodError){ /static/ }
assert_raise(NoMethodError){ /static/iu }
Object.remove_const :Regexp
Object.__send__(:remove_const,:Regexp)
# NODE_UNDEF
assert_nothing_raised do