I tried to use this for debug purpose. Isn't there a way to enable it
for debug purpose?

On 9月30日, 上午4時18分, Norris Boyd <[email protected]> wrote:
> On Sep 29, 5:34 am, sleepnova <[email protected]> wrote:
>
> > Is there any way to get the caller inside a function?
>
> > I'v found the following document of 
> > MDC.https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global...
>
> > I'v tried following way, non of them work for Rhino.
> > arguments.callee.caller
> > func.caller
> > __caller__
>
> Yes, this is intentional. There is no way to support this sort of
> functionality in compiled bytecode without severely impacting
> performance.
>
> --N
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to