Dmytrii Nagirniak created JRUBY-6319: ----------------------------------------
Summary: 'binding' returns wrong binding Key: JRUBY-6319 URL: https://jira.codehaus.org/browse/JRUBY-6319 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6.5 Environment: --1.9 Reporter: Dmytrii Nagirniak Priority: Critical Reporo by @headius: https://gist.github.com/1569078 system ~/projects/jruby $ jruby --1.9 -e "def foo(&block); Object.new.instance_exec(&block); end; p self; foo do; eval 'p self', binding; end" main main system ~/projects/jruby $ ruby1.9.2 -e "def foo(&block); Object.new.instance_exec(&block); end; p self; foo do; eval 'p self', binding; end" main #<Object:0x0000010086d188> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email