Subj : Re: JSFunctionSpec.nargs To : Braden McDaniel From : Brendan Eich Date : Sat May 10 2003 02:07 am Braden McDaniel wrote: >What's the nargs member of JSFunctionSpec actually used for? I'd at first >thought that perhaps it was checked as a minimum requirement when the >function is called; but that doesn't seem to be the case. > > It's not minimum requirement in the report-an-error/throw-an-exception-if-fewer-actuals sense. It's the minimum the callee can count on dereferencing with non-negative indexes via argv. If fewer actuals are passed, the engine will push undefined until nargs arguments are available. /be .