internal AsyncFromSyncIterator(EcmaIteratorEnumerator iterator) : base(WellKnownObject.AsyncFromSyncIteratorPrototype) { this.target = iterator.IteratedObject.ToObject(); this.iterator = iterator; }
internal AsyncFromSyncIterator(EcmaValue value) : base(WellKnownObject.AsyncFromSyncIteratorPrototype) { this.target = value.ToObject(); this.iterator = new EcmaIteratorEnumerator(value); }