Context.evaluate

Evaluate @code in @context.

class Context
evaluate
(
string code
,
ptrdiff_t length
)

Parameters

code string

a JavaScript script to evaluate

length ptrdiff_t

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

Return Value

Type: Value

a #JSCValue representing the last value generated by the script.

Meta