Subj : Re: uneval To : =?ISO-8859-1?Q?Georg_Maa=DF?= From : Brendan Eich Date : Thu May 01 2003 07:08 pm That's true for objects, but what about primitive values? Try (false).toSource() compared to uneval(false) (use other primitive values as well as false). /be > js> b.toSource(); > [[[15, 0, 15, 26], [23, 14, 31, 4]], [[5, 3, 17, 9], [8, 36, 29, 9]], > [[10, 24, 28, 32], [31, 16, 23, 9]]] > js> typeof uneval(b); > string > js> b.toSource=function(){return 'test'}; > > function () { > return "test"; > } > > js> b.toSource(); > test > js> uneval(b); > test > > > As you see, it simply calls the toSource method. > .