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

source-academy / js-slang / 24868044425
79%

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2026 01:54AM UTC
Jobs 1
Files 167
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

24 Apr 2026 01:47AM UTC coverage: 78.522% (+0.1%) from 78.391%
24868044425

push

github

web-flow
Error Handling and Stringify Changes (#1893)

* Modify stringify to prioritize toReplString

* Make the extract declarations helper actually work

* Add ability to change loader for source modules

* Add a new option for controlling how Source modules are loaded

* Improve typing for CSE machine

* Add ability to check if modules are loaded with the wrong Source chapter

* Refactor errors to extend from Error class

* Refactor modules errors

* Refactor parser errors

* Refactor cse machine errors

* Mostly fix error handling in the tracer

* Tidy up generator and explainer implementations for tracer

* Remove unnecessary imports and type guards

* Adjust rttc checks to be type guards instead of returning errors

* Adjust miscellanous error changes

* Add eslint rule for useless constructor

* Fix incorrect ordering for checking exceptionerrors

* Minor changes

* Run format

* Run linting

* Override the message property, but also enable noImplicitOverride to prevent accidental overriding

* Add some documentation to some errors

* Add errors to possible imports for modules

* Update getIds helper

* Minor fix to test case

* Run format

* Allow modules to try and load the context of other modules without crashing

* Fix incorrect stdlib name

* Add some more functions to the stdlib list library

* Change to use GeneralRuntimeError for list

* Revert "Change to use GeneralRuntimeError for list"

This reverts commit 642bd99e6.

* Update src/errors/errors.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Add ability to change manifest and docs importers

* Change how external builtins are defined

* Fix typings and list lib overloads

* Miscellanous changes

* Add the Source equality function to stdlib/misc

* Merge from main branch for tracer

* Add handling for the new importers

* Change errors and made redex a local variable

* Improve tracer typing

* Relocate... (continued)

3125 of 4193 branches covered (74.53%)

Branch coverage included in aggregate %.

899 of 1089 new or added lines in 96 files covered. (82.55%)

21 existing lines in 12 files now uncovered.

7031 of 8741 relevant lines covered (80.44%)

185057.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
59.05
7.74% src/errors/errors.ts
18
61.73
-0.77% src/stdlib/stream.ts
13
51.61
0.0% src/editors/ace/modes/source.ts
11
74.79
-0.21% src/stdlib/parser.ts
10
26.92
2.79% src/typeChecker/internalTypeErrors.ts
10
59.26
-24.07% src/utils/ast/helpers.ts
8
48.28
5.42% src/modules/loader/importers.ts
8
85.23
1.23% src/utils/testing/index.ts
6
90.37
-3.68% src/cse-machine/utils.ts
6
41.03
-1.53% src/stepper/nodes/Expression/ArrayExpression.ts
6
83.95
3.49% src/stepper/nodes/Expression/UnaryExpression.ts
5
81.08
-2.25% src/modules/loader/loaders.ts
5
86.36
3.27% src/stepper/generator.ts
4
69.49
1.07% src/modules/errors.ts
4
77.27
-6.06% src/repl/utils.ts
4
92.66
0.42% src/stepper/nodes/Expression/FunctionApplication.ts
4
70.0
-3.53% src/stepper/nodes/Expression/Identifier.ts
3
90.48
-2.12% src/createContext.ts
3
85.81
-0.46% src/stepper/nodes/Expression/BlockExpression.ts
3
89.89
4.1% src/utils/operators.ts
3
94.85
-1.37% src/utils/rttc.ts
2
91.35
0.7% src/cse-machine/interpreter.ts
2
80.65
-19.35% src/errors/base.ts
2
80.56
7.48% src/modules/loader/index.ts
2
90.74
-4.09% src/stepper/nodes/Expression/ArrowFunctionExpression.ts
2
86.79
0.64% src/stepper/nodes/Expression/LogicalExpression.ts
2
86.18
0.93% src/stepper/nodes/Statement/BlockStatement.ts
2
66.67
4.5% src/stepper/nodes/Statement/ReturnStatement.ts
2
90.14
-1.41% src/stepper/steppers.ts
2
88.89
-11.11% src/utils/misc.ts
2
28.07
0.0% src/vm/svml-compiler.ts
1
94.29
src/errors/rttcErrors.ts
1
90.65
0.0% src/modules/preprocessor/directedGraph.ts
1
93.1
0.0% src/modules/preprocessor/transformers/transformProgramToFunctionDeclaration.ts
1
42.86
-7.14% src/parser/source/rules/noEval.ts
1
89.29
-0.37% src/parser/source/rules/noUnspecifiedOperator.ts
1
87.21
-0.29% src/runner/errors.ts
1
96.95
3.91% src/stdlib/list.ts
1
50.57
-27.55% src/stdlib/misc.ts
1
32.76
0.0% src/stepper/builtins/misc.ts
1
91.67
7.22% src/stepper/nodes/Expression/ConditionalExpression.ts
1
91.67
4.17% src/stepper/nodes/Expression/Literal.ts
1
69.57
-4.98% src/stepper/nodes/Statement/VariableDeclaration.ts
1
94.55
-0.74% src/transpiler/transpiler.ts
1
77.92
0.0% src/utils/stringify.ts

Coverage Regressions

Lines Coverage ∆ File
3
91.35
0.7% src/cse-machine/interpreter.ts
3
90.37
-3.68% src/cse-machine/utils.ts
3
86.36
3.27% src/stepper/generator.ts
2
51.61
0.0% src/editors/ace/modes/source.ts
2
81.63
-6.37% src/runner/sourceRunner.ts
2
74.79
-0.21% src/stdlib/parser.ts
1
59.05
7.74% src/errors/errors.ts
1
69.49
1.07% src/modules/errors.ts
1
81.08
-2.25% src/modules/loader/loaders.ts
1
70.0
-3.53% src/stepper/nodes/Expression/Identifier.ts
1
92.31
-1.81% src/stepper/nodes/Statement/ExpressionStatement.ts
1
26.92
2.79% src/typeChecker/internalTypeErrors.ts
Jobs
ID Job ID Ran Files Coverage
1 24868044425.1 24 Apr 2026 01:54AM UTC 167
78.52
GitHub Action Run
Source Files on build 24868044425
  • Tree
  • List 167
  • Changed 105
  • Source Changed 0
  • Coverage Changed 105
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 0f13c48e on github
  • Prev Build on master (#24767298489)
  • Next Build on master (#24877223509)
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