JavaScript-1.5 Reference

JS_IdToValue Function

Summary

Converts a JS ID to a JS value.

Syntax

JSBool JS_IdToValue(JSContext *cx, jsval v,
    JSBool *bp);
NameTypeDescription
cxJSContext *Pointer to a JS context from which to derive runtime information.
idjsidThe JS ID to convert.
vpjsval *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

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_ConvertValue | JS_GetTypeName | JS_TypeOfValue | JS_ValueToFunction | JS_ValueToId | JS_ValueToInt32 | JS_ValueToNumber | JS_ValueToObject | JS_ValueToString ]

This page was generated by APIDOC