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); }
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); }