Register thread local variables before calling updatePrototypes() in order

to allow various things to happen during code compilation.
This commit is contained in:
hns 2005-03-15 18:05:33 +00:00
parent 6a29c2b465
commit dc394199be

View file

@ -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();
}
/**