Function script::dom::bindings::import::module::jsapi::JS::Evaluate2

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

Evaluate the provided UTF-8 data in the scope of the current global of |cx|, and return the completion value in |rval|. If the data contains invalid UTF-8, an error is reported.