Subj : Re: Returning integers from custom functions. To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Fri Jul 18 2003 08:50 pm > JS_NewNumberValue(cx,53,&rval); > > which works fine, but if you know you want 53, just > > rval = INT_TO_JSVAL(53); > > works the same and is faster, infallible, and less code. This is great! It's cool to find out little tricks like that. I'm starting to see how the engine works more clearly, and it's very enlightening. Any more tricks like this? Sterling .