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:
igor%mir2.org
2002-09-24 14:10:53 +00:00
parent 98b5068af7
commit 537ca4e14f

View File

@@ -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;