Subj : Re: sm: JS_ValueToInt unexpected results To : netscape.public.mozilla.jseng From : Jens Thiele Date : Sun Jan 09 2005 12:15 pm Brendan Eich schrieb: > Do you want this old API? fur created it for use with coordinates, back > in the Netscape 4 ("layers") daze. Perhaps you want JS_ValueToECMAInt32 > instead. I am just trying to improve the section about data conversion. () But I am not really happy with JS_ValueToECMAInt32 either. Why? I don't think the ECMA rules (9.5 in this case) are what scripters expect. For example infinity => 0 and generally wrap arounds. > I'm not sure we should change any API at this point, unless > the change is always a fix for all use-cases. I can't imagine fixing this would break existing code. Jens .