Skip to content

Wrong control flow order with Constant lookup and ||= #1489

@MaxLap

Description

@MaxLap

One of the two issues reported here jruby/jruby#4807 is affecting TruffleRuby.

The issue about ::X ||= being weird does not affect TruffleRuby.
The other ones does. Here is one of the examples showing off the problem.

The following should puts 'h1' and then fail. Instead, we get "h1" then "h3" then "h1" then fail.

(puts 'hi1'; raise 'thing'; puts 'h2';String)::Foo ||= puts 'hi3'

This is the commit that solved the issues for JRuby: jruby/jruby@8dae5af

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions