Skip to content

ECO-CMP-JS-009

Name: Unbounded promise chains

Category: CMP

Family: JS

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.