I would like to add some instrumentation to some standard objects like
native string and array to monitor some events like string
concatenation, array insertion? what is the best way to do it without
patching Rhino? does the following code solve the problem?
--------------------------------------------------
ScriptableObject.defineClass(scope, MyPkg.String.class);
ScriptableObject.defineClass(scope, MyPkg.Array.class);
--------------------------------------------------
Thanks.
Arthur