Entry: JSVAL_TO_OBJECT (Macro)
Summary: Casts the type tag for a specified JS value and returns a pointer to the value cast as a JS object.
Syntax:
JSVAL_TO_OBJECT(v)
Description:
JSVAL_TO_OBJECT clears a specified JS value, v, to a JS object. It does so by casting the value's type tag and casting the result to an object pointer.
Casting v to an object pointer manipulates its underlying type tag. v must be an object jsval. Casting does not convert the value stored in v to a different data type. To perform actual data type conversion, use the JS_ValueToObject function.
See also:
|
|
|