public Array_ctor(Context context) : base(context) { // 15.4.3 Prototype = context.FunctionConstructor.Function_prototype; Array_prototype = new Array_prototype(context); Array_prototype.SetOwnProperty("constructor", this); // 15.4.3 SetOwnProperty("length", 1.0D); // 15.4.3.1 SetOwnProperty("prototype", Array_prototype); }
protected Array_ctor(Context context) { Class = ObjClass.Function; Context = context; // 15.4.3 Prototype = context.FunctionConstructor.Function_prototype; Array_prototype = new Array_prototype(context); Array_prototype.SetOwnProperty("constructor", this); // 15.4.3 SetOwnProperty("length", 1.0D); // 15.4.3.1 SetOwnProperty("prototype", Array_prototype); }