Subj : Re: bug in DOUBLE_TO_JSVAL? To : netscape.public.mozilla.jseng From : Jun Kim Date : Wed Feb 02 2005 07:04 am Brendan Eich wrote in news:420075DA.1030202@meer.net: > 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 It works. (duh..) Thank you always~~ :) .