Norris Boyd wrote:
> 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

interpreted mode would be ok for us.
The feature is as always important for HtmlUnit but for instance less
than the properties order in ScriptableObject ;-)

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to