Пример #1
0
        public String_ctor(Context context)
            : base(context)
        {
            String_prototype = new String_prototype(Context);
            String_prototype.SetOwnProperty("constructor", this);

            SetOwnProperty("prototype", String_prototype);
            SetOwnProperty("fromCharCode", new String_ctor_fromCharCode(Context));
        }
Пример #2
0
        protected String_ctor(Context context)
        {
            Context = context;
            Class = ObjClass.Function;

            String_prototype = new String_prototype(Context);
            String_prototype.SetOwnProperty("constructor", this);

            SetOwnProperty("prototype", String_prototype);
            SetOwnProperty("fromCharCode", new String_ctor_fromCharCode(Context));
        }