Jirb raises a LocalJumpError calling Enumerator.with_index
----------------------------------------------------------

                 Key: JRUBY-3918
                 URL: http://jira.codehaus.org/browse/JRUBY-3918
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.3.1
            Reporter: David Calavera
            Assignee: Thomas E Enebo


Calling '[].each.with_index' without a block jirb raises this error:

{code}
irb(main):001:0> [].each.with_index
LocalJumpError: no block given
        from /opt/jruby/lib/ruby/1.8/irb/ruby-token.rb:102:in `each'
        from (irb):2:in `irb_binding'
Maybe IRB bug!!
irb(main):002:0>
{code}

same call in irb:
{code}
>> [].each.with_index
=> #<Enumerable::Enumerator:0xb7935d5c>
>>
{code}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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


Reply via email to