Method
JavaScriptCoreContextevaluate
Declaration [src]
JSCValue*
jsc_context_evaluate (
JSCContext* context,
const char* code,
gssize length
)
Parameters
code
-
Type:
const char*
A JavaScript script to evaluate.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. length
-
Type:
gssize
Length of
code
, or -1 ifcode
is a nul-terminated string.
Return value
Type: JSCValue
A JSCValue
representing the last value generated by the script.
The caller of the method takes ownership of the data, and is responsible for freeing it. |