diff --git a/src/helma/scripting/rhino/RhinoEngine.java b/src/helma/scripting/rhino/RhinoEngine.java index a789e2b0..9a94d543 100644 --- a/src/helma/scripting/rhino/RhinoEngine.java +++ b/src/helma/scripting/rhino/RhinoEngine.java @@ -59,6 +59,9 @@ public final class RhinoEngine implements ScriptingEngine { // the global vars set by extensions HashMap extensionGlobals; + // the thread currently running this engine + Thread thread; + // the introspector that provides documentation for this application DocApplication doc = null; @@ -166,6 +169,7 @@ public final class RhinoEngine implements ScriptingEngine { // set globals on the global object // context = Context.enter (context); globals.putAll(extensionGlobals); + thread = Thread.currentThread(); if ((globals != null) && (globals != lastGlobals)) { // loop through global vars and set them @@ -200,34 +204,6 @@ public final class RhinoEngine implements ScriptingEngine { v = arr; } - /* if (v instanceof Map) { - sv = new ESMapWrapper (this, (Map) v); - } else if ("path".equals (k)) { - ArrayPrototype parr = new ArrayPrototype (evaluator.getArrayPrototype(), evaluator); - List path = (List) v; - // register path elements with their prototype - for (int j=0; j