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

source-academy / js-slang / 35675681615
86%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2026 01:28AM UTC
Jobs 1
Files 145
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

22 Sep 2026 01:25AM UTC coverage: 84.946% (+0.07%) from 84.874%
35675681615

push

github

web-flow
fix(conductor): don't crash the error reporter on a non-SourceError (#2080)

`context.errors` is typed `SourceError[]`, but js-slang does not always keep
that promise. The CSE machine's `evaluateImports` pushes whatever `evaluate`
threw, and for an unresolved import that is a raw `TypeError` — reading
`context.nativeStorage.loadedModules['rune']`, which is `undefined` because
nothing loads modules under Conductor yet.

`toConductorError` then called `explain()` on it and threw *from inside the
error reporter*. On `SourceCseEvaluator.evaluateChunk`'s catch path that
replaced the student's diagnostic with `error.explain is not a function`
and lost the original failure entirely, so a §3 program containing

    import { black } from "rune";

reported nothing useful at all.

Falls back to `unknownToConductorError`, which already handles an arbitrary
thrown value. This is hardening, not the fix for module support — that is
tracked separately.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

2230 of 2724 branches covered (81.86%)

Branch coverage included in aggregate %.

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

4389 of 5068 relevant lines covered (86.6%)

306998.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35675681615.1 22 Sep 2026 01:28AM UTC 145
84.95
GitHub Action Run
Source Files on build 35675681615
  • Tree
  • List 145
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3fca0259 on github
  • Prev Build on master (#35620323934)
  • Next Build on master (#35676034146)
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