Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }