/*global canCall */

/*
Description:
Cutting edge, relies on `Array.prototype.slice`
*/

/*
Author:
David Mark
*/

var toArray;

if (canCall && Array.prototype.slice) {
        try {
                Array.prototype.slice.call(arguments, 0);
                toArray = function(a) {
                        return Array.prototype.slice.call(a, 0);
                };
        } catch(e) {}
}

/*global canCall */

/*
Description:
Cutting edge, relies on `Array.prototype.slice`
*/

/*
Author:
David Mark
*/

var toArray;

if (canCall && Array.prototype.slice) {
        try {
                Array.prototype.slice.call(document.childNodes);
                toArray = function(a) {
                        return Array.prototype.slice.call(a);
                };
        } catch(e) {}
}

Change slice test to use host object
Change slice test to use host object

These renditions must be able to work with host objects