CreatePrototype() static private method

Creates the WeakSet prototype object.
static private CreatePrototype ( ScriptEngine engine, WeakSetConstructor constructor ) : ObjectInstance
engine ScriptEngine The script environment.
constructor WeakSetConstructor A reference to the constructor that owns the prototype.
return ObjectInstance
        //     INITIALIZATION
        //_________________________________________________________________________________________

        /// <summary>
        /// Creates a new WeakSet constructor.
        /// </summary>
        /// <param name="prototype"> The next object in the prototype chain. </param>
        internal WeakSetConstructor(ObjectInstance prototype)
            : base(prototype, __STUB__Construct, __STUB__Call)
        {
            // Initialize the constructor properties.
            var properties = new List <PropertyNameAndValue>();

            InitializeConstructorProperties(properties, "WeakSet", 0, WeakSetInstance.CreatePrototype(Engine, this));
            InitializeProperties(properties);
        }