if (obj instanceof XMLObject) {
// TODO: Change XMLObject to just use Scriptable interface
// to avoid paying cost of instanceof check on *every property
// lookup* !
XMLObject xmlObject = (XMLObject)obj;
return xmlObject.ecmaGet(cx, property);
}
Object result = ScriptableObject.getProperty(obj, property);
if (result == Scriptable.NOT_FOUND) {
if (cx.hasFeature(Context.FEATURE_STRICT_MODE)) {