public sealed override object Get(Context cx, object id)
{
if (cx == null)
{
cx = Context.GetCurrentContext();
}
XMLName xmlName = lib.ToXMLNameOrIndex(cx, id);
if (xmlName == null)
{
long index = ScriptRuntime.LastUint32Result(cx);
// XXX Fix this cast
object result = Get((int)index, this);
if (result == ScriptableConstants.NOT_FOUND)
{
result = Undefined.instance;
}
return result;
}
return GetXMLProperty(xmlName);
}