Beispiel #1
0
 public void PushStack(IGeneratorEnumerator other)
 {
     other.Init(context);
     if (other is GeneratorDelegateEnumerator e)
     {
         e.stack = stack;
     }
     stack.Insert(0, other);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 void IGeneratorEnumerator.PushStack(IGeneratorEnumerator other)
 {
 }
Beispiel #4
0
 internal AsyncGenerator(RuntimeFunctionInvocation invocation, IGeneratorEnumerator iterator)
     : base(invocation, iterator, WellKnownObject.AsyncGeneratorPrototype)
 {
 }