This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Constructs a new instance of the MessageSyntaxError class


constructor(type: typeof MessageSyntaxError.prototype.type, start: number, end: number, expected?: string);


Parameter Type Description
type typeof MessageSyntaxError.prototype.type  
start number  
end number  
expected string (Optional)