Considering that he was a mere child and therefore not tarnished by any sin and that a great divine work would be accomplished by him in future the sun did not burn Hanuman.
शशुरेष त्वदोषज्ञ इति मत्वा दिवाकरः। कार्य चास्मिन्समायत्तमित्येवं न ददाह सः॥