aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/RUNNING_UNIT_TESTS.rdoc
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2016-10-21 09:33:25 -0500
committerCharles Oliver Nutter <headius@headius.com>2016-10-21 09:33:25 -0500
commit5f382d41c30b1e433d777a8daaedb247d7f2a57c (patch)
treeb7914f0112dc21c60b6bdff8209b7f0c7e6f23e0 /actionview/RUNNING_UNIT_TESTS.rdoc
parentf2c6db41ba56afb1529e4732c59622fc0cf9f3ba (diff)
downloadrails-5f382d41c30b1e433d777a8daaedb247d7f2a57c.tar.gz
rails-5f382d41c30b1e433d777a8daaedb247d7f2a57c.tar.bz2
rails-5f382d41c30b1e433d777a8daaedb247d7f2a57c.zip
Explicitly unpack the expanded args to avoid execution order diff.
In https://bugs.ruby-lang.org/issues/12860 I argue that MRI's execution order here is incorrect. The splatting of the 'c' args should happen before the shift, but it happens after. On JRuby, it behaves the way you would expect, leading to the 'c' args splat still containing the block and producing an error like "cannot convert proc to symbol" when the send attempts to coerce it. This patch makes the unpacking order explicit with a multi-assign, which behaves properly on all implementations I tested.
Diffstat (limited to 'actionview/RUNNING_UNIT_TESTS.rdoc')
0 files changed, 0 insertions, 0 deletions