require'coverage'Coverage.startRubyVM::InstructionSequence.compile("puts 'hi'",'hello_world.rb').evalCoverage.result# => {}, should be {'hello_world.rb' => [1]}
The change itself is actually not intended.
But I'm unsure if it should handle ISeq-loaded code as a measuring target, because currently eval-loaded code is not a target:
require 'coverage'
Coverage.start
eval("puts 'hi'", binding, "hello_world.rb")
p Coverage.result # => {} in 2.5 and trunk
Do you have actual use case? (Is it needed for bootsnap or so?) If not, I'd like to add it into NEWS as a subtle incompatibility.