ECO-CMP-JS-009¶
Name: Unbounded promise chains
Category: Computation
Family: JavaScript
Primary layer: code
System layers: code
Description¶
Long or recursive promise chains can leak work and increase memory usage.
Impact¶
- confidence: 0.55
- notes: Depends on implementation.
- type: memory
Detection¶
- languages:
javascript - method: hybrid
Remediation¶
- guidance: Bound retries; avoid recursion; use iterative loops with limits.
- tradeoffs: Logic changes.
Pattern examples¶
No pattern examples provided.
Remediation examples¶
No remediation examples provided.
Metadata¶
- catalog_version: 0.4.0