On Jan 25, 3:09 pm, Marc Guillemot <[EMAIL PROTECTED]> wrote:
> Hi,
>
> in browsers something like:
> ----------
> function myFunc() {
> alert(myFunc.caller)}
>
> myFunc()
> function foo() { myFunc() }
> foo()
> ----------
> will alert "null" and "function foo() { ...".
>
> Rhino doesn't support this and it seems not to be in the ECMA standard.
>
> Would you accept this in some way in Rhino?
>
> Cheers,
> Marc.
> --
> Blog:http://mguillem.wordpress.com
I intentionally left this out since it was non-ECMA and the caller-
callee pair can only be supported by creating a call frame for every
invocation, which would have a significant negative impact on
performance for compiled code.
An option would be to support in interpreter mode only, although I've
tried to avoid having any functionality differences between the two
modes.
So how important is this as a feature?
--N
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino