Checking function prototype before type checking function chunk