Invalid property declaration. The getter must not have arguments and the setter must have one argument.
The code defines a property getter function with one or more parameters, or defines a property setter function with no parameters or more than one parameter. The definition of a getter function must have no parameters, while the setter function must have exactly one parameter.
To correct this error
-
Define property getter functions with no parameters.
-
Define property setter functions with exactly one parameter.
See Also
Reference
function get Statementfunction set Statement
Concepts
Other Resources
JScript ReferenceClass-based Objects