source-academy / js-slang

Implementations of sublanguages of JavaScript, TypeScript, Scheme and Python
https://source-academy.github.io/source/
Apache License 2.0
70 stars 104 forks source link

Stepper: Catch and show "name not declared" error #1608

Closed hanscau closed 7 months ago

hanscau commented 7 months ago

Fix for #1551

Catch RuntimeSourceError and display it on the stepper

Add appropriate test for "name not declared"

coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 8421186872

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/stepper/stepper.ts 5 6 83.33%
<!-- Total: 8 9 88.89% -->
Totals Coverage Status
Change from base Build 8421180460: -0.001%
Covered Lines: 10597
Relevant Lines: 12644

💛 - Coveralls