diff options
author | Takashi Kokubun <[email protected]> | 2020-06-20 14:55:09 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-20 14:55:09 -0700 |
commit | 95b0fed3714b87dcb40a16f33d9e3160f9945e38 (patch) | |
tree | 100cb67619729fa2b5c306a138599eef6fb11377 /test/ruby | |
parent | b68ddcf30ce1dc2788d3bd3d10169726feada1f2 (diff) |
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].
Notes
Notes:
Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_jit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |