From 95b0fed3714b87dcb40a16f33d9e3160f9945e38 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 20 Jun 2020 14:55:09 -0700 Subject: Make Integer#zero? a separated method and builtin (#3226) A prerequisite to fix https://bugs.ruby-lang.org/issues/15589 with JIT. This commit alone doesn't make a significant difference yet, but I thought this commit should be committed independently. This method override was discussed in [Misc #16961]. --- test/ruby/test_jit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 97c287f692..0a7089375d 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -980,7 +980,7 @@ class TestJIT < Test::Unit::TestCase def test_frame_omitted_inlining assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "true\ntrue\ntrue\n", success_count: 1, min_calls: 2) begin; - class Numeric + class Integer remove_method :zero? def zero? self == 0 -- cgit v1.2.3