Closed
Description
i.e.
[1, [], 2].each do |x|
puts x
end
gets transmitted to the client side as
[1, [], 2].each do |x, |
puts x
end
The extra comma has no effect UNLESS the value being passed to a block is an array. (i.e. the second element in the example above)
Problem is easily fixed by setting an opt-in flag when initializing the parser gem, which will produce the correct result.
The down side is that to process the resulting AST tree, we have to upgrade the unparser gem to latest which has a bug #127 but fortunately this problem produces an obvious error, and has an obvious work around.