What could happen if a child eats some vaseline?

Not much. Vaseline isn't toxic. A lot might cause a little diarrhea, but I can't imagine a child eating enough to do that.