Array or arguments object expected

You did not supply an array as an argument. This error applies to the Function.prototype.apply method only. If specified, the second argument to this function must be either an Array object or an Arguments object.

To correct this error

See Also

Using Arrays | apply Method | JScript Functions