Jean Valjean, who has witnessed the scene, leaves the inn, buys the expensive doll, and returns a moment and gives it to Cosette.
Jean Valjean leaves the inn. Jean Valjean buys the expensive doll. Jean Valjean returns a moment. Jean Valjean gives it to Cosette. Jean Valjean has witnessed the scene.