Skip to content

Commit

Permalink
Support the change of Thread::Backtrace::Location#label
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Feb 19, 2024
1 parent 9850cb5 commit 7cfaf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typeprof/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def screen_name(iseq, scratch)

# Dirty Hack: Stop the iteration at most once!
# I'll remove this hack if RBS removes the limitation of nesting blocks
return fargs_str, sig_help if caller_locations.any? {|frame| frame.label == "show_block_signature" }
return fargs_str, sig_help if caller_locations.any? {|frame| frame.label =~ /\bshow_block_signature\z/ }

optional = false
blks = []
Expand Down

0 comments on commit 7cfaf38

Please sign in to comment.