Subj : bug in DOUBLE_TO_JSVAL? To : netscape.public.mozilla.jseng From : Jun Kim Date : Wed Feb 02 2005 06:23 am 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. This is how I got this error. the sample script code : > if (aObject.aProp == "2pt") { alert("ok"); } and in the getProperty of aObject, I made it to return 2 (in double). And I get an error on the equality operation. so I messed around, trying different numbers, and when I tried 1, I got 0x00000003 for jsval. and when I tried 3, I got 0x00000005 for jsval. I guess it's because of the JSVAL_TAG, right? but if I try 2, then I get 0x00000002 for jsval. Is this a bug? .