Actions
Misc #20222
closedDedup-ing clarification
Status:
Closed
Assignee:
-
Description
source = %q{"foo".freeze.equal?("foo".freeze)}
RubyVM::InstructionSequence.compile(source).eval # => true
RubyVM::InstructionSequence.compile_option = false
RubyVM::InstructionSequence.compile(source).eval # => false
"foo".freeze
uses opt_str_freeze
when optimizations are turned on, which also deduplicates. This means this code has different behavior depending on if optimizations are turned on or off.
To be clear, I'm not saying whether or not this is a problem. I'm asking if this is desired behavior?
Actions
Like0
Like0Like0Like0Like0