code: function eliminateHole(hole, outerNode) {
         outerNode = findHoleBridge(hole, outerNode);
         if (outerNode) {
             var b = splitPolygon(outerNode, hole);
             filterPoints(b, b.next);
         }
     }
docs: find a bridge between vertices that connects hole with an outer ring and and link it