• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stores-com / petty-cache / 31042427680
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: v4.0.1
DEFAULT BRANCH: main
Ran 05 Aug 2026 08:05PM UTC
Jobs 1
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Aug 2026 08:05PM UTC coverage: 100.0%. Remained the same
31042427680

Pull #73

github

freshlogic
Invoke callbacks exactly once, outside of the promise chain

The callback bridge was executor().then(result => callback(null, result)).catch(callback),
so a callback that threw was caught by its own .catch and invoked a second time
with the error it had just thrown, while the original throw was swallowed
entirely. Bridge through process.nextTick instead, matching util.callbackify:
the callback is invoked exactly once, and a throw from within it surfaces as an
uncaught exception rather than rejecting a promise nobody owns.

Applies to all 17 callback-style call sites. The shape first appeared in 3.6.0
at 6 sites and grew to 9 in 3.7.0; 4.0.0 extended callback support to the rest
of the API and took the bug with it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Pull Request #73: Invoke callbacks exactly once, outside of the promise chain

302 of 302 branches covered (100.0%)

Branch coverage included in aggregate %.

28 of 28 new or added lines in 1 file covered. (100.0%)

1118 of 1118 relevant lines covered (100.0%)

60.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31042427680.1 05 Aug 2026 08:05PM UTC 1
100.0
GitHub Action Run
Source Files on build 31042427680
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31042427680
  • Pull Request #73
  • PR Base - main (#30879341406)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc