diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb index 88f36bd0c2..a093d60779 100644 --- a/bootstraptest/test_insns.rb +++ b/bootstraptest/test_insns.rb @@ -10,8 +10,10 @@ begin rescue LoadError # OK, just skip else - $FIXNUM_MAX = RbConfig::LIMITS["FIXNUM_MAX"] - $FIXNUM_MIN = RbConfig::LIMITS["FIXNUM_MIN"] + if defined? RbConfig::LIMITS + $FIXNUM_MAX = RbConfig::LIMITS["FIXNUM_MAX"] + $FIXNUM_MIN = RbConfig::LIMITS["FIXNUM_MIN"] + end end fsl = { frozen_string_literal: true } # used later