Search completed in 1.33 seconds.
JS_ConvertValue
ccess, the converted value is stored in *vp. Typically users of this function set vp to point to v, so that if conversion is successful, v now contains the converted value. JS_ConvertValue calls other, type-specific conversion routines based on the type argument. Converting any value to JSTYPE_VOID always succeeds. The result is undefined value. Converting to JSTYPE_OBJECT works exactly like
JS::ToObject if v.isNullOrUndefined() is false, otherwise the result is nullptr. Converting to JSTYPE_FUNCTION works like JS_ValueToFunction, but better: the result is a function object that has not been stripped of its lexical scope. It is safe to call the result (e.g. using JS_CallFunctionValue). Converting to JSTYPE_STRING works like JS::ToString. Converting to JSTYPE_NUMBER works exactly like JS::ToNum...