Project

General

Profile

Actions

Feature #20384

closed

RubyVM::InstructionSequence.{new,compile} use --parser option

Added by kddnewton (Kevin Newton) about 1 month ago. Updated 4 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:117268]

Description

Right now we have RubyVM::InstructionSequence.compile and RubyVM::InstructionSequence.compile_prism. We introduced this API in order to properly test the integration, even when running with --parser=parse.y.

I'm running into issues, however, when tests are comparing between eval and RubyVM::InstructionSequence.new. The latter always uses parse.y, even if --parser=prism is passed on the command line. I would like to change that so that RubyVM::InstructionSequence.{new,compile} respects the --parser option so that it's consistent.

Would this change be okay? It would only impact processes with --parser=prism, so I don't imagine there's any kind of risk here.

Updated by kddnewton (Kevin Newton) 29 days ago

I've opened a PR here https://github.com/ruby/ruby/pull/10406. I'm assuming no one has an objection based on the silence, so I'll merge once CI passes.

Actions #2

Updated by kddnewton (Kevin Newton) 4 days ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0