We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [linux-x86_64] Ubuntu 16.04, jruby installed through rbenv
The following code
def m proc end puts m { 10 }
raises under jruby
ArgumentError: tried to create Proc object without a block proc at org/jruby/RubyKernel.java:1273 m at m.rb:2 <main> at m.rb:4
but under MRI, proc without a block returns the procified block given as argument to the method (proc's documentation points to Proc.new and https://ruby-doc.org/core-2.4.0/Proc.html#method-c-new)
#<Proc:0x000000008a8b08@flat_fish-jruby917/m.rb:4>
The text was updated successfully, but these errors were encountered:
Sorry for the noise ... I did not search in existing issues. Duplicate of #3915
Sorry, something went wrong.
No branches or pull requests
Environment
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [linux-x86_64]
Ubuntu 16.04, jruby installed through rbenv
Expected and actual behaviors
The following code
raises under jruby
but under MRI, proc without a block returns the procified block given as argument to the method (proc's documentation points to Proc.new and https://ruby-doc.org/core-2.4.0/Proc.html#method-c-new)
The text was updated successfully, but these errors were encountered: