A simple problem - I have implemented my own ErrorReport object called
ECMAErrors and set it as follows;
Context objJs = Context.enter();
S objScope = objJs.initS();
objJs.setErrorReporter(new ECMAErrors());
I then evaluate a script with an error in it e.g.
objJs.evaluateString(objScope, "var test; test=test1;", "ECMAScript:",
1, null);
This throws an error which tells me that test1 is not defined, fine, but I
never get calls into my ErrorReporter methods.
What am I doing wrong?
Thanks
Steve
dev-tech-js-engine mailing list
dev-tech-js-engine (AT) lists (DOT) mozilla.org