In getClassPrototype replace ScriptRuntime.getTopLevelProp by getProperty to avoid double call to getTopLevelScope
git-svn-id: svn://10.0.0.236/trunk@130349 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1317,7 +1317,7 @@ public abstract class ScriptableObject implements Scriptable, Serializable,
|
||||
String className)
|
||||
{
|
||||
scope = getTopLevelScope(scope);
|
||||
Object ctor = ScriptRuntime.getTopLevelProp(scope, className);
|
||||
Object ctor = getProperty(scope, className);
|
||||
if (ctor == NOT_FOUND || !(ctor instanceof Scriptable))
|
||||
return null;
|
||||
Scriptable ctorObj = (Scriptable) ctor;
|
||||
|
||||
Reference in New Issue
Block a user