Register thread local variables before calling updatePrototypes() in order
to allow various things to happen during code compilation.
This commit is contained in:
parent
6a29c2b465
commit
dc394199be
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue