`credit` being undefined should be a `DeveloperError` instead of being ignored.