Function javascriptcore_sys::JSCheckScriptSyntax [] [src]

pub unsafe extern "C" fn JSCheckScriptSyntax(
    ctx: JSContextRef,
    script: JSStringRef,
    sourceURL: JSStringRef,
    startingLineNumber: c_int,
    exception: *mut JSValueRef
) -> bool

Checks for syntax errors in a string of JavaScript.

Returns true if the script is syntactically correct, otherwise false.