lib/ruby2js/converter/block.rb in ruby2js-2.0.6 vs lib/ruby2js/converter/block.rb in ruby2js-2.0.7

- old
+ new

@@ -34,10 +34,10 @@ end then # accommodate javascript style syntax: convert function blocks with # simple arguments into an anonymous function args = call.children[2..-1].map {|arg| s(:arg, arg.children.last)} - parse @ast.updated(:block, [s(:send, nil, :lambda), + parse @ast.updated(:block, [s(:send, nil, :proc), s(:args, *args), block]) else # convert blocks into method calls with an additional argument # consisting of an anonymous function