JScript  

Array or arguments object expected

[This is preliminary documentation and subject to change]

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 | JScript Language Reference