That's a regression in 1.7 (including 1.7R2-RC3).
That code (thankfully) works correctly in 1.6 (at least R6 and R7)
-Simon

"Kris Zyp" <[email protected]> wrote in message 
news:[email protected]...
> If a function is named, the function name binding seems to take
> priority over a parameter name. Therefore:
> js>(function a(a){return a})(1);
>
> function a(a) {
>    return a;
> }
>
> All other JS engines return 1 here. Is this a "feature" that can be
> configured in the context or is this a bug? 


_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to