opal/corelib/time.rb in opal-1.6.1 vs opal/corelib/time.rb in opal-1.7.0.rc1

- old
+ new

@@ -205,11 +205,11 @@ # The _dummy args are there only because the MRI version accepts up to 10 arguments %x{ var args, result; if (arguments.length === 10) { - args = $slice.call(arguments); + args = $slice(arguments); year = args[5]; month = args[4]; day = args[3]; hour = args[2]; min = args[1]; @@ -236,10 +236,10 @@ # The _dummy args are there only because the MRI version accepts up to 10 arguments %x{ var args, result; if (arguments.length === 10) { - args = $slice.call(arguments); + args = $slice(arguments); year = args[5]; month = args[4]; day = args[3]; hour = args[2]; min = args[1];