node 10 compatibility on 4.7.x

Is this necessary for node 10 or is it an unrelated improvement?