Use function
rather than var
to compile private methods
#12990
Merged
function
rather than var
to compile private methods
#12990