| ||||||
SummaryCasts the type tag for a specified JS value and returns a pointer to the value cast as a JS object. | ||||||
SyntaxJSVAL_TO_OBJECT(v) | ||||||
DescriptionJSVAL_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
| ||||||
NotesThis macro assumes that the JS type tag forv is already JSVAL_OBJECT .
Because JS values are represented as bit-shifted C integers, comparisons of
JSVAL_TO_OBJECT(v) to v itself are not equal unless you ignore the C pointer
type mismatch and v is an object reference.
| ||||||
See Also
|