コード例 #1
0
        public override object Get(string id, IScriptable start)
        {
            if (id.Equals("length"))
            {
                return((int)length);
            }
            object result = base.Get(id, start);

            if (result == UniqueTag.NotFound && !ScriptableObject.HasProperty(GetPrototype(), id))
            {
                throw Context.ReportRuntimeErrorById("msg.java.member.not.found", array.GetType().FullName, id);
            }
            return(result);
        }