Actions
Bug #15332
closedcoverage and InstructionSequence regression
Description
With the current head:
require 'coverage'
Coverage.start
RubyVM::InstructionSequence.compile("puts 'hi'", 'hello_world.rb').eval
Coverage.result # => {}, should be {'hello_world.rb' => [1]}
This is not intended, right?
Updated by mame (Yusuke Endoh) almost 6 years ago
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.
Updated by marcandre (Marc-Andre Lafortune) almost 6 years ago
I don't have an important use case, no.
Updated by naruse (Yui NARUSE) almost 6 years ago
- Status changed from Open to Closed
Actions
Like0
Like0Like0Like0