Context.checkSyntax

Check the given @code in @context for syntax errors. The @line_number is the starting line number in @uri; the value is one-based so the first line is 1. @uri and @line_number are only used to fill the @exception. In case of errors @exception will be set to a new #JSCException with the details. You can pass %NULL to @exception to ignore the error details.

class Context
checkSyntax

Parameters

code string

a JavaScript script to check

length ptrdiff_t

length of @code, or -1 if @code is a nul-terminated string

mode JSCCheckSyntaxMode

a #JSCCheckSyntaxMode

uri string

the source URI

lineNumber uint

the starting line number

exception JException

return location for a #JSCException, or %NULL to ignore

Return Value

a #JSCCheckSyntaxResult

Meta