Skip to content
New issue

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

Different parser handling of masgn in if condition #1353

Closed
headius opened this issue Dec 19, 2013 · 1 comment
Closed

Different parser handling of masgn in if condition #1353

headius opened this issue Dec 19, 2013 · 1 comment
Labels
Milestone

Comments

@headius
Copy link
Member

headius commented Dec 19, 2013

This may or may not be worth fixing, but it was brought up as part of #1347.

The following code behaves rather oddly across JRuby and MRI versions:

if (a,b = function_returning_nil())
  puts "hello"
end

MRI 1.8.7, 1.9.3, 2.0.0, and 2.1.0 all produce a SyntaxError in IRB but only a warning when running the code directly.

JRuby in 1.8 mode produces the SyntaxError in IRB and when running the code directly. JRuby in 1.9 mode does not produce the error or the warning in either IRB or when running the code directly. JRuby master (2.1 mode only) behaves the same as JRuby in 1.9 mode.

This seems pretty trivial and may not be worth fixing, since JRuby actually seems more correct than MRI when JRuby runs in 1.9 and 2.1 modes.

@enebo
Copy link
Member

enebo commented Feb 17, 2017

This works in 9k and we will never fix this in 1.7.x as it is winding down (only one last point release until EOL)....resolving as WONTFIX.

@enebo enebo closed this as completed Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants