From: "kddnewton (Kevin Newton) via ruby-core" Date: 2024-03-20T20:27:43+00:00 Subject: [ruby-core:117268] [Ruby master Feature#20384] RubyVM::InstructionSequence.{new,compile} use --parser option Issue #20384 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Feature #20384: RubyVM::InstructionSequence.{new,compile} use --parser option https://bugs.ruby-lang.org/issues/20384 * Author: kddnewton (Kevin Newton) * Status: Open ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/