
4. Native Error Messages
4.1 Exceptions
| ExceptionCode | Message | Support | Remark |
|---|---|---|---|
| RangeError | Array length is invalid. | Yes | length property of Array object is invalid. |
| Argument %d is out of range. | Yes | Arguments of toFixed, toExponential, and toPrecision exceed the limit. | |
| Argument %d is out of range. | Yes | Argument of toString exceeds the limit. | |
| ReferenceError | %F is not defined. | Yes | Undefined variable is used (%F represents variable name). |
| SyntaxError | %s is missing. | Yes | Specified symbol is missing (%s represents symbol name). |
| Identifier is missing. | Yes | Identifier is missing. | |
| There is an unexpected identifier. | Yes | Unexpected identifier exists. | |
| There is an unexpected symbol. | Yes | Unexpected symbol exists. | |
| Source code is incomplete. | Yes | Source code ends at unexpected location. | |
| Assignment operator appears at an invalid position. | Yes | Assignment operator exists at invalid location. | |
| Ternary operator ':' is missing. | Yes | Ternary operator without ":". | |
| Parenthesis is not closed. | Yes | Closing parenthesis does not exist. | |
| Expression is missing. | Yes | Expression is missing. | |
| There is an invalid return statement. | Yes | Invalid return sentence exists. | |
| Label name is duplicated. | Yes | Label names are duplicated. | |
| Label used in the break statement does not exist. | Yes | A label used in break statement does not exist. | |
| Label used in the continue statement does not exist. | Yes | A label used in continue statement does not exist. | |
| Undefined label has been used. | Yes | Undefined label is used. | |
| TypeError | %F is not a function. | Yes | Attempted to call a function using a value that is not a function object (%F represents variable name). |
| %s is not a function. | Yes | Attempted to call a function using a value that is not a function object (%s represents type name). | |
| %F is not a constructor. | Yes | Attempted to call a constructor using a value that is not a function object (%F represents variable name). | |
| %s is not a constructor. | Yes | Attempted to call a constructor using a value that is not a function object (%s represents type of the value). | |
| %s cannot be converted to an object. | Yes | Attempted to convert a value that cannot be converted to an object. | |
| %s has no properties. | Yes | A property that does not exist is used. | |
| Right operand of the 'in' operator is not an object. | Yes | Right operand of in operator is not an object. | |
| Right operand of the 'instanceof' operator is not a function. | Yes | Right operand of instanceof operator is not a function. | |
| %s is used with an inappropriate method. | Yes | Object is used with inappropriate method. | |
| Right operand %s of the 'instanceof' operator is not an object. ('prototype' is not an object) |
Yes | prototype property value of right operand of instanceof operator is not an object (%s always represents prototype). | |
| Second argument of 'apply' is not an Array object. | Yes | Second argument of apply is not an Array object. | |
| URIError | URI string is invalid. | Yes | Arguments of decodeURI, decodeURIComponent are invalid URI strings. |

