Do not catch Exceptions when wrapping globals in enterContext() - this makes

us ignore syntax errors in scripts, prevents useful error messages to be displayed
and causes functions to be called in illegal state.
This commit is contained in:
hns 2004-05-25 13:29:54 +00:00
parent c3af34272f
commit bc85445744

View file

@ -190,7 +190,6 @@ public class RhinoEngine implements ScriptingEngine {
Object v = globals.get(k);
Scriptable scriptable = null;
try {
// create a special wrapper for the path object.
// other objects are wrapped in the default way.
if (v instanceof RequestPath) {
@ -201,9 +200,6 @@ public class RhinoEngine implements ScriptingEngine {
}
global.put(k, global, scriptable);
} catch (Exception x) {
app.logEvent("Error setting global variable " + k + ": " + x);
}
}
}