Beispiel #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;
 }
Beispiel #2
0
 public EcmaArrayIterator(EcmaValue target, EcmaIteratorResultKind kind)
     : base(target.ToObject(), kind, WellKnownObject.ArrayIteratorPrototype)
 {
 }
Beispiel #3
0
 public EcmaMapIterator(EcmaMap target, EcmaIteratorResultKind kind)
     : base(target, kind, WellKnownObject.MapIteratorPrototype)
 {
 }
Beispiel #4
0
 public EcmaArrayIterator(IEnumerator <KeyValuePair <EcmaValue, EcmaValue> > target, EcmaIteratorResultKind kind)
     : base(target, kind, WellKnownObject.ArrayIteratorPrototype)
 {
 }