mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
test/codegen.rb: call #remove_const via #__send__ to skip private check
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user