Subj : Re: Rhino question To : Egor Senin From : Igor Bukanov Date : Mon Jan 24 2005 09:23 pm Egor Senin wrote: .... > Consider the following script: > > function c(a, b) { return f.arguments } > function f(a, b) { return c('1','2') } > var fArgs = f('1', '2'); > > And the fArgs is null :( > > If I change 'f.arguments' to 'c.arguments' in line 1 then > it successfully returns arguments of function 'c'. However, > there is a problem with arguments of function 'f' inside > of function 'f'. > > Is that a bug or a feature ? functionName.arguments is a deprecated feature of JS since it is supposed that ECMAScript-compliant arguments is used instead to access arguments object of the current function. Rhino supports functionName.arguments but only for the current function, so you can not access arguments object of the callee from the caller. Regards, Igor .