push
github
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