mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 23:16:42 +02:00
Convert catch_except_t to stdbool
catch_excep_t is a field that exists for MJIT. In the process of rewriting MJIT in Ruby, I added API to convert 1/0 of _Bool to true/false, and it seemed confusing and hard to maintain if you don't use _Bool for *_p fields.
This commit is contained in:
parent
098a3cfaa7
commit
d6f21b308b
4 changed files with 10 additions and 10 deletions
|
@ -782,9 +782,9 @@ class TestMJIT < Test::Unit::TestCase
|
|||
def test_catching_deep_exception
|
||||
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '1', success_count: 4)
|
||||
begin;
|
||||
def catch_true(paths, prefixes) # catch_except_p: TRUE
|
||||
prefixes.each do |prefix| # catch_except_p: TRUE
|
||||
paths.each do |path| # catch_except_p: FALSE
|
||||
def catch_true(paths, prefixes) # catch_except_p: true
|
||||
prefixes.each do |prefix| # catch_except_p: true
|
||||
paths.each do |path| # catch_except_p: false
|
||||
return path
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue