       mainSize = currentSize[mainCoordinate]
 
       if child.getPendingLayoutSizeParentCircular()
-        addFinalPassSizeLayoutChild finalPassProps, child
+        (finalPassSizeLayoutChildren||=[]).push child
       else
         crossSize = currentSize[crossCoordinate]
         maxCrossSize = max maxCrossSize, crossSize

    sizeWithPadding x, y, currentPadding
  else
    point x, y

addFinalPassSizeLayoutChild = (finalPassProps, child) ->
  if finalPassProps.finalPassSizeLayoutChildren
    finalPassProps.finalPassSizeLayoutChildren.push child
  else
    finalPassProps.finalPassSizeLayoutChildren = [child]

module.exports = class FlexLayout


        spaceForFlexChildren -= mainSize

        if child.getPendingLayoutSizeParentCircular()
          (finalPassSizeLayoutChildren||=[]).push child
          if (!isRowLayout && child._pendingState._size.xChildrenRelative) || (isRowLayout && child._pendingState._size.yChildrenRelative)
            maxCrossSize = max maxCrossSize, currentSize[crossCoordinate]
        else
