Entry: JS_IdToValue (Function)
Summary: Converts a JS ID to a JS value.
Syntax:
JSBool JS_IdToValue(JSContext *cx, jsval v,
JSBool *bp);
Argument Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information.
id jsid The JS ID to convert.
vp jsval * Pointer to the JS value that contains the converted ID when the function returns.
Description:
JS_IdToValue converts a specified JS ID, id, to a JS value. The converted value is stored in the jsval pointed to by vp. If the conversion is successful, JS_IdToValue returns JS_TRUE. Otherwise, it returns JS_FALSE.
See also:
|
|
|