コード例 #1
0
ファイル: RegExp_ctor.cs プロジェクト: dtdimi/IronJS
        public RegExp_ctor(Context context)
            : base(context)
        {
            RegExp_prototype = new RegExp_prototype(Context);
            RegExp_prototype.SetOwnProperty("constructor", this);

            SetOwnProperty("prototype", RegExp_prototype);
            SetOwnProperty("length", 2.0D);
        }
コード例 #2
0
ファイル: RegExp_ctor.cs プロジェクト: cpbtechnology/IronJS
        protected RegExp_ctor(Context context)
        {
            Class = ObjClass.Function;
            Context = context;
            Prototype = context.FunctionConstructor.Function_prototype;

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

            SetOwnProperty("prototype", RegExp_prototype);
            SetOwnProperty("length", 2.0D);
        }