コード例 #1
0
ファイル: String_ctor.cs プロジェクト: dtdimi/IronJS
        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
ファイル: String_ctor.cs プロジェクト: cpbtechnology/IronJS
        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));
        }