Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StandardError should become an operand which always refers to same value #2482

Open
enebo opened this issue Jan 19, 2015 · 0 comments
Open

Comments

@enebo
Copy link
Member

enebo commented Jan 19, 2015

Originally from #2417. This snippets shows that in MRI StandardError is saved off at bootstrap and is immune to the constant changing. We should make a special operand for this so we can still use it in EQQ instr:

Object.const_set :StandardError, 1

class ExposesJRuby2417 < BasicObject                                               
  def blow_up                                                                      
    begin                                                                          
      ::Kernel.raise "error"                                                       
    rescue 
       puts "rescued"                                                                        
    end                                                                            
  end                                                                              
end                                                                                
ExposesJRuby2417.new.blow_up 
@enebo enebo added this to the JRuby 9.0.0.0 milestone Jan 19, 2015
@enebo enebo modified the milestone: JRuby 9.0.0.0 Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant