Subj : How to get an object literal from a jsval? To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sat Aug 02 2003 02:25 pm Hi, I create a function literal from a jsval by doing this: JSString myLiteral = JS_DecompileFunction(my_context, JS_ValueToFunction(my_context, rval), JS_DONT_PRETTY_PRINT); What should I do, to create an object literal in case rval is of type JSTYPE_OBJECT ? -- Georg Maaß - bioshop.de D-93466 Chamerau, Roßbergweg 42 JavaScript, C++ Engineering - The ultimative DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul .