I don't seem to be able to get warnings from Rhino (1.7R1). I have the
following code in my startup class:
static class MyFactory extends ContextFactory {
protected boolean hasFeature(Context cx, int featureIndex) {
switch(featureIndex) {
case Context.FEATURE_DYNAMIC_SCOPE:
case Context.FEATURE_STRICT_MODE:
case Context.FEATURE_STRICT_VARS:
case Context.FEATURE_STRICT_EVAL:
return true;
}
return super.hasFeature(cx, featureIndex);
}
}
static {
ContextFactory.initGlobal(new MyFactory());
}
I am executing the following JavaScript function, and I don't receive
any warnings. What I am missing.
function strict() {
var a = {};
debug(a.name);
blue = "12354";
debug("Color is: " + blue);
}
function debug(msg) {
java.System.out.println(msg+"");
}
Thanks,
Edwin S. Ramirez
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino