A childish promise to be a good boy, not to do it again?
A childlike promise to behave.