ruby/tool/lib
Luke Gruber d592ddd5e6 Fix compile issue with a short-circuited if/unless condition and defined?
This caused an issue when `defined?` was in the `if` condition. Its
instructions weren't appended to the instruction sequence even though it was compiled
if a compile-time known logical short-circuit happened before the `defined?`. The catch table
entry (`defined?` compilation produces a catch table entry) was still on the iseq even though the
instructions weren't there. This caused faulty exception handling in the method.
The solution is to no add the catch table entry for `defined?` after a compile-time known logical
short circuit.

This shouldn't touch much code, it's only for cases like the following,
which can occur during debugging:

    if false && defined?(Some::CONSTANT)
    "more code..."
    end

Fixes [Bug #20501]
2024-10-01 02:12:56 +09:00
..
-test-
test Remove an unnecessary blank line added by mistake [ci skip] 2024-09-10 17:19:02 +09:00
_tmpdir.rb Traverse tmpdir under chdir 2024-04-23 13:38:40 +09:00
bundled_gem.rb Try to find bundled gem version from lib/*/version.rb 2024-09-13 15:49:28 +09:00
colorize.rb Add more abstract decorations for messaging 2024-03-18 23:29:53 +09:00
core_assertions.rb Accept version range 2024-09-12 23:47:34 +09:00
envutil.rb Fix compile issue with a short-circuited if/unless condition and defined? 2024-10-01 02:12:56 +09:00
find_executable.rb
gc_checker.rb
iseq_loader_checker.rb RubyVM::InstructionSequence.compile_file_prism 2023-11-20 12:45:29 -08:00
jisx0208.rb
launchable.rb Move the file location of launchable.rb 2024-07-08 10:15:04 +09:00
leakchecker.rb Fix check_tempfile_leak in leakchecker.rb 2024-09-05 14:03:39 -04:00
memory_status.rb Prefer to use File.foreach instead of IO.foreach 2023-02-27 18:49:18 +09:00
output.rb Make Output.new accepts keyword arguments 2024-04-19 14:12:42 +09:00
path.rb Fix runnable symlinks 2024-09-03 09:59:28 +09:00
profile_test_all.rb
tracepointchecker.rb
vcs.rb Revert "Update revision.h if branch unmatch not only revision" 2024-05-09 01:02:59 +09:00
vpath.rb file2lastrev.rb: separate options for Output and VPath 2022-11-02 12:38:03 +09:00
zombie_hunter.rb