Subj : Re: bug in DOUBLE_TO_JSVAL? To : Jun Kim From : Brendan Eich Date : Tue Feb 01 2005 10:40 pm Jun Kim wrote: > I don't know if this is a bug or something I did wrong. > If I convert 2(or 2.0) to jsval by using DOUBLE_TO_JSVAL, > I get an error. Use JS_NewNumberValue to make an appropriately tagged numeric value. If you hack around with JSVAL macros without knowing how they work, you can make lots of bad things happen. Don't do it. /be .