public void PushStack(IGeneratorEnumerator other) { other.Init(context); if (other is GeneratorDelegateEnumerator e) { e.stack = stack; } stack.Insert(0, other); }
internal GeneratorBase(RuntimeFunctionInvocation invocation, IGeneratorEnumerator iterator, WellKnownObject proto) : base(proto) { this.invocation = invocation; this.iterator = iterator; invocation.Generator = this; invocation.SuspendOnDispose = true; SetPrototypeOf(invocation.FunctionObject.Get(WellKnownProperty.Prototype).ToObject()); iterator.Init(this); }
void IGeneratorEnumerator.PushStack(IGeneratorEnumerator other) { }
internal AsyncGenerator(RuntimeFunctionInvocation invocation, IGeneratorEnumerator iterator) : base(invocation, iterator, WellKnownObject.AsyncGeneratorPrototype) { }