The payment of such compensation into the fund established in section
944 of this title shall operate as an assignment to the employer of all right of the legal representative of the deceased (hereinafter referred to as “representative”) to recover damages against such third person.