Skip to content

fix: add missing setUsesJson flags in json access paths#284

Merged
cs01 merged 1 commit intomainfrom
fix/missing-feature-flags
Mar 12, 2026
Merged

fix: add missing setUsesJson flags in json access paths#284
cs01 merged 1 commit intomainfrom
fix/missing-feature-flags

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 12, 2026

Summary

  • Add missing setUsesJson(true) calls in 4 JSON codegen paths that emit @csyyjson_* bridge calls without setting the feature flag
  • Affected paths: extractJsonFieldValue, extractNestedJsonFieldValue (chained-access.ts), generateJSONArrayIndex (index.ts), JSON array .length (property-handlers.ts)
  • Without the flag, these paths could produce "undefined value" linker errors if they're the only JSON codegen path hit in a program (CLAUDE.md rule Argparse library improvements, cross-compilation support, and several compiler fixes. #9)

Test plan

  • npm run verify:quick passes (tests + Stage 1 self-hosting)

🤖 Generated with Claude Code

@cs01 cs01 merged commit c35aa46 into main Mar 12, 2026
12 checks passed
@cs01 cs01 deleted the fix/missing-feature-flags branch March 12, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant