If I have a JSObject * how can I get a string?

2005-12-08 Thread Stephen Kellett
If I have a JSObject * how can I get a string representation of it, as 
if I had called toString()?


I haven't found a JS_ObjectToString() method, so I guess it must be some 
other way. Can anyone help?


Stephen
--
Stephen Kellett
Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: If I have a JSObject * how can I get a string?

2005-12-08 Thread Boris Zbarsky

Stephen Kellett wrote:
I haven't found a JS_ObjectToString() method, so I guess it must be some 
other way. Can anyone help?


  JS_ValueToString(cx, OBJECT_TO_JSVAL(obj))

-Boris
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding