Esempio n. 1
0
 public EcmaIterator(object target, EcmaIteratorResultKind kind, WellKnownObject proto)
     : base(proto)
 {
     Guard.ArgumentNotNull(target, "target");
     this.iterator       = GetEnumerator(target);
     this.IteratedObject = target;
     this.ResultKind     = kind;
 }
Esempio n. 2
0
 public EcmaArrayIterator(EcmaValue target, EcmaIteratorResultKind kind)
     : base(target.ToObject(), kind, WellKnownObject.ArrayIteratorPrototype)
 {
 }
Esempio n. 3
0
 public EcmaMapIterator(EcmaMap target, EcmaIteratorResultKind kind)
     : base(target, kind, WellKnownObject.MapIteratorPrototype)
 {
 }
Esempio n. 4
0
 public EcmaArrayIterator(IEnumerator <KeyValuePair <EcmaValue, EcmaValue> > target, EcmaIteratorResultKind kind)
     : base(target, kind, WellKnownObject.ArrayIteratorPrototype)
 {
 }