From dc394199be4574f5dba874e347090c3cdca553ec Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 15 Mar 2005 18:05:33 +0000 Subject: [PATCH] Register thread local variables before calling updatePrototypes() in order to allow various things to happen during code compilation. --- src/helma/scripting/rhino/RhinoEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/scripting/rhino/RhinoEngine.java b/src/helma/scripting/rhino/RhinoEngine.java index 34156b8f..2143b57d 100644 --- a/src/helma/scripting/rhino/RhinoEngine.java +++ b/src/helma/scripting/rhino/RhinoEngine.java @@ -174,10 +174,10 @@ public class RhinoEngine implements ScriptingEngine { context.setOptimizationLevel(optLevel); // register the per-thread scope with the dynamic scope core.global.registerScope(global); - // update prototypes - core.updatePrototypes(); context.putThreadLocal("reval", reval); context.putThreadLocal("engine", this); + // update prototypes + core.updatePrototypes(); } /**