This documentation is archived and is not being maintained.

JS5001: Number expected

The code invoked Number.prototype.toString or Number.prototype.valueOf method on an object of a type other than Number. The object of this type of invocation must be of type Number.

To correct this error

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

Show: