stacks-network / clarity-wasm

`clar2wasm` is a compiler for generating WebAssembly from Clarity.
GNU General Public License v3.0
12 stars 9 forks source link

Fix tuples fields evaluation order #405

Closed Acaccia closed 1 month ago

Acaccia commented 1 month ago

Fixes #393

The tuple traverse function now evaluates the fields in the order of definition, store the results in locals and load them in the correct final order.

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 86.97%. Comparing base (a0f75e7) to head (231be7d).

Files Patch % Lines
clar2wasm/src/words/tuples.rs 82.85% 4 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #405 +/- ## ======================================= Coverage 86.97% 86.97% ======================================= Files 43 43 Lines 18356 18386 +30 Branches 18356 18386 +30 ======================================= + Hits 15965 15992 +27 - Misses 1051 1054 +3 Partials 1340 1340 ```

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