Function chakracore_sys::JsDiagEvaluate
[−]
[src]
pub unsafe extern "system" fn JsDiagEvaluate(
expression: JsValueRef,
stackFrameIndex: c_uint,
parseAttributes: JsParseScriptAttributes,
forceSetValueProp: bool,
evalResult: *mut JsValueRef
) -> JsErrorCode
expression (JsValueRef) should be parsed.
- JsParseScriptAttributeNone when expression is a Utf8 encoded ArrayBuffer and/or a Javascript String (encoding independent)
- JsParseScriptAttributeArrayBufferIsUtf16Encoded when expression is Utf16 Encoded ArrayBuffer
- JsParseScriptAttributeLibraryCode has no use for this function and has similar effect with JsParseScriptAttributeNone
Forces the result to contain the raw value of the expression result.
Result of evaluation.
evalResult when evaluating a script which throws JavaScript error and return is JsErrorScriptException { "name" : "a.b.c", "type" : "object", "className" : "Error", "display" : "'a' is undefined", "propertyAttributes" : 1, "handle" : 18 } </para>