Fix bug 39906

This commit is contained in:
nboyd%atg.com 2000-05-28 19:01:24 +00:00
parent dc7deebcad
commit a50280a77b
2 changed files with 2 additions and 14 deletions

View File

@ -90,13 +90,7 @@ public class NativeJavaObject implements Scriptable, Wrapper {
}
// TODO: passing 'this' as the scope is bogus since it has
// no parent scope
Object result = members.get(this, name, javaObject, false);
if (result == NOT_FOUND) {
Scriptable proto = getPrototype();
if (proto == null || !ScriptRuntime.hasProp(proto, name))
throw members.reportMemberNotFound(name);
}
return result;
return members.get(this, name, javaObject, false);
}
public Object get(int index, Scriptable start) {

View File

@ -90,13 +90,7 @@ public class NativeJavaObject implements Scriptable, Wrapper {
}
// TODO: passing 'this' as the scope is bogus since it has
// no parent scope
Object result = members.get(this, name, javaObject, false);
if (result == NOT_FOUND) {
Scriptable proto = getPrototype();
if (proto == null || !ScriptRuntime.hasProp(proto, name))
throw members.reportMemberNotFound(name);
}
return result;
return members.get(this, name, javaObject, false);
}
public Object get(int index, Scriptable start) {