What kind of instrumentation do you need? You can achieve some things
by implementing the org.mozilla.javascript.debug.Debugger interface
and hook an instance of it into the Context using setDebugger(). I.e.
function enter/exit, code coverage by line etc. are all possible to be
tracked by implementing a Debugger.
Attila.
On 2009.10.16., at 14:14, Frank wrote:
Hi,
I would like to use Rhino (if possible) to instrument some Javascript
code. This means I would need to use the Rhino parser to create an
AST, then modify this AST and somehow print out Javascript source code
again. Is this possible? Where can I find the documentation I would
need?
Regards,
Frank Groeneveld
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino