Infinite loop/recursion detection
It's possible to make a mistake that causes a function to trigger itself (for example, an onDocumentWritten Firestore trigger that writes to the same document). If Cloud Functions for Firebase could detect this and shut down the infinite loop, it could prevent runaway bills.
It could also be a feature in the emulator suite so that we could check for them before deploying to production.
2
votes