lib/opal/nodes/args/prepare_post_args.rb in opal-1.5.1 vs lib/opal/nodes/args/prepare_post_args.rb in opal-1.6.0.alpha1

- old
+ new

@@ -12,13 +12,15 @@ children :offset def compile add_temp '$post_args' + helper :slice + if offset == 0 - line "$post_args = Opal.slice.call(arguments)" + push "$post_args = $slice.call(arguments)" else - line "$post_args = Opal.slice.call(arguments, #{offset})" + push "$post_args = $slice.call(arguments, #{offset})" end end end end end