Prevent async methods named 'function' in Object literal