risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
576 stars 24 forks source link

Fix edge case with compiling loops containing undefined variables #240

Closed myzie closed 2 months ago

myzie commented 2 months ago

Capture the code the loop is associated with so we can correctly close it out, when there is a compile error.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 59.09091% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 32.99%. Comparing base (ebc2522) to head (0eed241). Report is 1 commits behind head on main.

Files Patch % Lines
object/set.go 41.66% 7 Missing :warning:
compiler/compiler.go 71.42% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #240 +/- ## ========================================== + Coverage 32.82% 32.99% +0.16% ========================================== Files 129 129 Lines 16013 16025 +12 ========================================== + Hits 5257 5288 +31 + Misses 10124 10111 -13 + Partials 632 626 -6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.