зеркало из https://github.com/mozilla/pjs.git
Fixing regression caused by the committed patch under bug 255595
This commit is contained in:
Родитель
cecfa7b389
Коммит
40c0449b14
|
@ -124,7 +124,13 @@ public class ScriptRuntime {
|
|||
scope = new NativeObject();
|
||||
}
|
||||
scope.associateValue(LIBRARY_SCOPE_KEY, scope);
|
||||
scope.associateValue(CONTEXT_FACTORY_KEY, cx.getFactory());
|
||||
ContextFactory factory = cx.getFactory();
|
||||
if (factory == null) {
|
||||
// factory is null for Context asociated with the current thread
|
||||
// via Context.enter()
|
||||
factory = ContextFactory.getGlobal();
|
||||
}
|
||||
scope.associateValue(CONTEXT_FACTORY_KEY, factory);
|
||||
(new ClassCache()).associate(scope);
|
||||
|
||||
BaseFunction.init(cx, scope, sealed);
|
||||
|
|
Загрузка…
Ссылка в новой задаче