Hi everyone,
>From the docs, I couldn't quite tell: is compiling a Script using
compileReader the same as calling setOptimizationLevel? ie is this:

        Script script = context.compileReader(fileReader, packageName,
1, null);
        return script.exec(context, newScope);

pretty much the same as this?
        context.setOptimizationLevel(1);
        context.evaluateReader(fileReader, packageName, 1, null);

or is the optimization level about the way the context runs the
script?
Thanks,
A
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to