Mozilla

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • ErrorReporter methods never called

    0 answers - 669 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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

Re: ErrorReporter methods never called


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Mozilla"

EMSDN.COM