Avoid making top-level `env` in initialization code; ref
MODIFY
mrbgems/mruby-complex/mrblib/complex.rb
mrbgems/mruby-complex/mrblib/complex.rb
@@ -104,7 +104,6 @@ class Complex < Numeric
end
alias_method :imag, :imaginary
-end
[Fixnum, Float].each do |cls|
[:+, :-, :*, :/, :==].each do |op|
@@ -121,3 +120,4 @@ end
end
end
end
+end

MODIFY
mrbgems/mruby-rational/mrblib/rational.rb
mrbgems/mruby-rational/mrblib/rational.rb
@@ -89,7 +89,6 @@ module Kernel
a, b = b, a % b until b == 0
Rational._new(numerator.div(a), denominator.div(a))
end
-end
[:+, :-, :*, :/, :<=>, :==, :<, :<=, :>, :>=].each do |op|
Fixnum.instance_eval do
@@ -114,3 +113,5 @@ end
end
end if Object.const_defined?(:Float)
end
+end
+

Avoid making top-level `env` in initialization code; ref #4581