Esempio n. 1
0
        internal IteratorInstance Construct(List <JsValue> enumerable)
        {
            var instance = new IteratorInstance.ListIterator(Engine, enumerable)
            {
                _prototype = this
            };

            return(instance);
        }
        internal ObjectInstance Construct(List <JsValue> enumerable)
        {
            var instance = new IteratorInstance.ListIterator(Engine, enumerable)
            {
                _prototype = GenericIteratorPrototypeObject
            };

            return(instance);
        }
Esempio n. 3
0
        internal ObjectInstance Construct(List <JsValue> enumerable)
        {
            var instance = new IteratorInstance.ListIterator(Engine, enumerable)
            {
                Prototype  = PrototypeObject,
                Extensible = true
            };

            return(instance);
        }