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

disable d098d82 for shortcut operator temporarily #3159

Closed

Conversation

mame
Copy link
Contributor

@mame mame commented May 14, 2016

d098d82 introduces a stack inconsistency when it is a shortcut operator.

a = { :foo => { :bar => 0 } }
p((a[:foo] ||= {})[:bar] ||= 42)
#=> expected: 0, actual: nil

Note that this is just a temporary fix to disable d098d82; a in a[b] ||= c is evaluated twice.

d098d82 introduces a stack inconsistency when it is a shortcut operator.

  a = { :foo => { :bar => 0 } }
  p((a[:foo] ||= {})[:bar] ||= 42)
    #=> expected: 0, actual: nil

Note that this is just a temporary fix to disable d098d82; `a` in `a[b] ||= c` is evaluated twice.
@matz matz closed this in 29d3a40 May 15, 2016
@matz
Copy link
Member

@matz matz commented May 15, 2016

29d3a40 causes TravisCI fail. need to fix.

@matz matz reopened this May 15, 2016
@matz matz closed this in 6b0299f May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants