Files
codeql/ruby/ql/test/library-tests/dataflow/global/blocks.rb
2024-01-10 14:25:15 +01:00

15 lines
193 B
Ruby

class A
def m1(&block)
r = block.call()
sink r # $ MISSING: hasValueFlow=1
end
def m2
sink yield # $ hasValueFlow=2
end
end
A.new.m1 { source(1) }
A.new.m2 { source(2) }