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

Binding#receiver is not implemented [9k] [lotus] #2578

PragTob opened this issue Feb 8, 2015 · 1 comment

Binding#receiver is not implemented [9k] [lotus] #2578

PragTob opened this issue Feb 8, 2015 · 1 comment


Copy link

PragTob commented Feb 8, 2015

Binding#receiver is not implemented

My jruby-head is from today: tobi@tobi-desktop ~/github/lotus_components/helpers $ ruby -v jruby (2.2.0p0) 2015-02-08 cc00fd4 OpenJDK 64-Bit Server VM 24.75-b04 on 1.7.0_75-b13 +jit [linux-amd64]

Here is a demonstration of what does not work:

ruby 2.2.0:

2.2.0 :001 > blk = proc do puts 'Test' end
 => #<Proc:0x00000000bac070@(irb):1> 
2.2.0 :002 > blk.binding
 => #<Binding:0x00000000ba8d30> 
2.2.0 :003 > blk.binding.receiver
 => main 


jruby-head :001 > blk = proc do puts 'test' end
 => #<Proc:0x31dec40@(irb):1> 
jruby-head :002 > blk.binding
 => #<Binding:0x41f6e11e> 
jruby-head :004 > blk.binding.receiver
NoMethodError: undefined method `receiver' for #<Binding:0x25c2dc76>
    from (irb):4:in `evaluate'
    from org/jruby/ `eval'
    from org/jruby/ `loop'
    from org/jruby/ `catch'
    from org/jruby/ `catch'
    from /home/tobi/.rvm/rubies/jruby-head/bin/irb:13:in `__script__'

Discovered during testing of lotus/helpers


Copy link

enebo commented Feb 12, 2015

Interestingly mri test covering this is unexcluded which means we must have some other bug not really running that test since up to this point we have no receiver impl :|

@enebo enebo closed this as completed Feb 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants