24.183. SyntaxError: thrown to signal a syntax errorECMAScript v3: Object Error SyntaxError24.183.1. Constructornew SyntaxError( ) new SyntaxError(message) 24.183.1.1. Arguments
24.183.1.2. ReturnsA newly constructed SyntaxError object. If the message argument is specified, the Error object uses it as the value of its message property; otherwise, it uses an implementation-defined default string as the value of that property. When the SyntaxError( ) constructor is called as a function, without the new operator, it behaves just as it does when called with the new operator. 24.183.2. Properties
24.183.3. DescriptionAn instance of the SyntaxError class is thrown to signal a syntax error in JavaScript code. The eval( ) method, the Function( ) constructor, and the RegExp( ) constructor may all throw exceptions of this type. See Error for details about throwing and catching exceptions. 24.183.4. See AlsoError, Error.message, Error.name |