Subj : Re: spidermonkey: are integers (mathematical sense) always stored To : Jens Thiele From : Brendan Eich Date : Fri Nov 12 2004 04:17 pm Mike Shaver wrote: > Jens Thiele wrote: > >> if a Number was somehow generated by spidermonkey and it is an >> integer (in the mathematical sense) that fits in an jsval >> then it will always be stored directly in the jsval? > > > Yep. See INT_FITS_IN_JSVAL in jsapi.h >> PS: is there something related in the ecma spec? > > > I don't think ECMA has language requiring it, but that it does have > language permitting it. I could very easily be wrong about that, though. It's an implementation detail, and ECMA has nothing to say about implementation strategies. So long as the outputs for given inputs follow the spec, ECMA doesn't care. /be .