JScript  

Object expected

You attempted to invoke the Object.prototype.toString or Object.prototype.valueOf method on an object of a type other than Object. The object of this type of invocation must be of type Object.

To correct this error

Only invoke the Object.prototype.toString or Object.prototype.valueOf methods on objects of type Object.

See Also

Object Object | JScript Objects