Class PerformPromiseCombinatorNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.promise.PerformPromiseCombinatorNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Direct Known Subclasses:
PerformPromiseAllNode, PerformPromiseAnyNode, PerformPromiseRaceNode

public abstract class PerformPromiseCombinatorNode extends JavaScriptBaseNode
  • Field Details

    • context

      protected final JSContext context
  • Constructor Details

    • PerformPromiseCombinatorNode

      protected PerformPromiseCombinatorNode(JSContext context)
  • Method Details

    • execute

      public abstract JSDynamicObject execute(IteratorRecord iteratorRecord, JSDynamicObject constructor, PromiseCapabilityRecord resultCapability, Object promiseResolve)
    • iteratorStepOrSetDone

      protected final Object iteratorStepOrSetDone(IteratorRecord iteratorRecord)
      Let next be IteratorStep(iteratorRecord). If next is an abrupt completion, set iteratorRecord.[[Done]] to true.
    • iteratorValueOrSetDone

      protected final Object iteratorValueOrSetDone(IteratorRecord iteratorRecord, Object next)
      Let nextValue be IteratorValue(next). If nextValue is an abrupt completion, set iteratorRecord.[[Done]] to true.