Conrad Irwin created JRUBY-6474: ----------------------------------- Summary: __LINE__ is not reset to 1 when passing a filename to binding.eval Key: JRUBY-6474 URL: https://jira.codehaus.org/browse/JRUBY-6474 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, RubySpec Reporter: Conrad Irwin Priority: Minor
When a filename is passed to Kernel#eval or Binding#eval, MRI sets the line number to 1 if it hasn't been explicitly specified. There is a RubySpec for this behaviour at https://github.com/jruby/rubyspec/commit/88f3dff4#L1R24, and a commit that fixes it at https://github.com/ConradIrwin/jruby/commit/ebb35c47b405fee32d26e57c4570801ef35b5f48. To get this code: git pull https://github.com/ConradIrwin/jruby.git bug/line-in-eval -- 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