eval("... BEGIN { ... } ...") throws SyntaxError
------------------------------------------------

                 Key: JRUBY-6123
                 URL: https://jira.codehaus.org/browse/JRUBY-6123
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.7
            Reporter: Martin Harriman
            Assignee: Thomas E Enebo
            Priority: Minor


rubyspec uses eval to test BEGIN; in jruby, this throws the error:

SyntaxError: (eval):1: BEGIN in method, singleton, or block

followed by the offending line with no punctuation or space between block and 
BEGIN.

In MRI, eval can deal with BEGIN. See rubyspec/language/BEGIN_spec.rb for an 
example.

--
This message is automatically generated by JIRA.
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


Reply via email to