예제 #1
0
 internal AsyncFromSyncIterator(EcmaIteratorEnumerator iterator)
     : base(WellKnownObject.AsyncFromSyncIteratorPrototype)
 {
     this.target   = iterator.IteratedObject.ToObject();
     this.iterator = iterator;
 }
예제 #2
0
 internal AsyncFromSyncIterator(EcmaValue value)
     : base(WellKnownObject.AsyncFromSyncIteratorPrototype)
 {
     this.target   = value.ToObject();
     this.iterator = new EcmaIteratorEnumerator(value);
 }