Commit 39d5e01
docs(affinescript-deno-test): record two codegen bugs discovered in pilot
Writing the first AffineScript-native test suite for double-track-browser
(commit b1f3b80) surfaced two AffineScript codegen bugs worth pinning in
the README so future contributors to the harness don't re-discover them
cold:
1. Match-on-enum with distinct zero-arity constructors per arm emits
invalid WASM (stack imbalance, rejected by WebAssembly.compile).
2. Reading a non-first struct field from a function parameter returns
0 regardless of the actual value. First-field reads work fine.
Both are OCaml codegen issues upstream in lib/codegen.ml; estate-wide
tracking lives in ~/Desktop/AI-WORK-todo.md §11.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 641a3c8 commit 39d5e01
1 file changed
Lines changed: 21 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
160 | 181 | | |
161 | 182 | | |
162 | 183 | | |
| |||
0 commit comments