Checks whether JS code string is valid code in the current context
Examples
if (FALSE) { # \dontrun{
ctx <- JSContext$new()
ctx$validate("1 + 2")
} # }
Checks whether JS code string is valid code in the current context
if (FALSE) { # \dontrun{
ctx <- JSContext$new()
ctx$validate("1 + 2")
} # }