summaryrefslogtreecommitdiff
path: root/bootstraptest/test_insns.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_insns.rb')
-rw-r--r--bootstraptest/test_insns.rb6
1 files changed, 4 insertions, 2 deletions
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