예제 #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));
        }