Consumer: zig-utils/zig-js#1021 (blocking zig-utils/zig-js#1019)
Reproducer
From the clean zig-js main checkout at 388a01f67cf04e087dc448f75787bc820b896d49:
HOME_RUN_LOCK=/Users/glennmichaeltorregosa/.cache/home-run.lock \
HOME_RUN_LOCK_WAIT=1800 \
HOME_RUN_MAX_MB=512 \
HOME_RUN_LABEL=zig-js-1019-home-repro \
/Users/glennmichaeltorregosa/Documents/Projects/home/scripts/run-bounded.pl 300 \
/Users/glennmichaeltorregosa/Code/Home/lang/zig-out/bin/home-tool \
run tools/representative-benchmark.ts --self-testActual
The checker aborts before the module self-test runs:
panic: start index 7 is larger than end index 6
packages/ts_checker/src/check.zig:114801 in checkExpression
packages/ts_checker/src/check.zig:130535 in checkMethodThisCompatibility
packages/ts_checker/src/check.zig:155332 in checkTemplateLiteralExpressionExit code is 134. The bounded supervisor reports a 138 MB peak tree footprint and 37% host low-water, so this is not resource pressure.
The authoritative zig-js command zig build benchmark-comparison-test --summary all fails at the same compile stage. Running its imports separately isolates the first failure to tools/representative-benchmark.ts; the preceding benchmark-comparison, benchmark-publication, and representative-matrix validators pass.
Provenance
- zig-js source file SHA-256:
c5ab6c701a02132ad26e0991f3135254b1bedce6fa801c093d77f524dc428a0e - that file last changed in zig-js
224cd4846b3af783993dd6fb30118f92f6517074on 2026-09-29 - home-tool SHA-256:
b9e326a4585abf491db59d19a3ec16a10c7bd15346f6fe27f22f3df24e56f023 - home-tool mtime: 2026-10-01 20:22:55 +0800
The Home checkout currently has unrelated uncommitted checker instrumentation, so I did not rebuild or alter it. No consumer-side syntax workaround has been added.
Expected
The module compiles and runs its self-test, or reports a normal TypeScript diagnostic rather than aborting the process.