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

derbyjs / racer / 897 / 3
69%
master: 74%

Build:
Build:
LAST BUILD BRANCH: eventContext-jsdoc-types
DEFAULT BRANCH: master
Ran 25 Mar 2020 08:04PM UTC
Files 28
Run time 3s
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

25 Mar 2020 08:02PM UTC coverage: 68.906% (+46.2%) from 22.714%
897.3

push

travis-ci

ericyhwang
Fix deferred unload (see a320772a) when unfetching then synchronously subscribing

When a doc gets unfetched, #276 adds a Share Doc whenNothingPending listener to unload the doc later, instead of doing nothing, which was the cause of a memory leak introduced in #266.

However, Racer keeps reference counts itself for fetches and subscriptions, so an immediate subscribe on the same Racer doc does not affect the Share doc at all, which means the doc would still get unloaded, erroneously.

This fix instead retries the Racer _maybeUnloadDoc in that scenario, instead of doing an immediate unload. That guards against Racer getting new doc references while the Share Doc whenNotingPending is in progress.

776 of 1275 branches covered (60.86%)

Branch coverage included in aggregate %.

2291 of 3176 relevant lines covered (72.13%)

62.32 hits per line

Source Files on job 897.3
  • Tree
  • List 0
  • Changed 25
  • Source Changed 0
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 70
  • Travis Job 897.3
  • c14610a2 on github
  • Prev Job for on fix-maybeUnloadDoc (#895.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc