Subj : -x when x == 0 treated as a double ? To : netscape.public.mozilla.jseng From : bubbfree Date : Tue Jan 25 2005 03:54 pm I have some unexpected behavior in SpiderMonkey (latest RC6). If I do this: var x = 0; myNativeFunction(-x); the jsval in argv[0] for my native handler is of type double. I would have expected int. If I do: myNativeFunction(-0); it gets passed as an int. Is this correct behavior? .