On Oct 17, 2008, at 3:27 PM, Marc Guillemot wrote:

Hannes Wallnoefer wrote:
On Oct 17, 2:46 pm, Marc Guillemot <[EMAIL PROTECTED]> wrote:

What about saving information about the "birth name" of the function to make debugging easier? This would be the name of the variable to which
the function was initially assigned.

I don't think that would be a good idea. It adds complexity to the
parser and blurs the idea of what a function name is and where it
comes from.

I've never said that it should replace the function name. I see it as
additional information. The added complexity to the parser wouldn't be
specially high.

Yeah, this could work without too much complexity -- just stash somewhere the last identifier encountered within the current statement (null it on statement boundary), and use that as the function name.

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

Reply via email to