Function mozjs::jsapi::JS::Evaluate

source ·
pub unsafe extern "C" fn Evaluate(
    cx: *mut JSContext,
    options: *const ReadOnlyCompileOptions,
    srcBuf: *mut SourceText<u16>,
    rval: MutableHandle<Value>
) -> bool
Expand description

Evaluate the given source buffer in the scope of the current global of cx, and return the completion value in |rval|.