class SyntaxTree::YARV::VM
def find_catch_entry(frame, type)
def find_catch_entry(frame, type) iseq = frame.iseq iseq.catch_table.find do |catch_entry| next unless catch_entry.is_a?(type) begin_pc = iseq.insns.index(catch_entry.begin_label) end_pc = iseq.insns.index(catch_entry.end_label) (begin_pc...end_pc).cover?(frame.pc) end end