Use auto
Use ES_FUNCTION2 for backwards compatibility