From 7cfaf38267a7cfbaa6682edf7dcce6572fab7a34 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 19 Feb 2024 13:53:31 +0900 Subject: [PATCH] Support the change of Thread::Backtrace::Location#label https://bugs.ruby-lang.org/issues/19117 --- lib/typeprof/type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/typeprof/type.rb b/lib/typeprof/type.rb index f0c835771..aada65b8b 100644 --- a/lib/typeprof/type.rb +++ b/lib/typeprof/type.rb @@ -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 = []