Skip to content

fix: add missing setVariableType in map/set has/delete/size#168

Merged
cs01 merged 2 commits intomainfrom
fix/map-set-return-type-propagation
Mar 10, 2026
Merged

fix: add missing setVariableType in map/set has/delete/size#168
cs01 merged 2 commits intomainfrom
fix/map-set-return-type-propagation

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 10, 2026

Summary

  • 6 methods (has, delete on Set, Map, StringMap) returned double results without calling setVariableType, leaving downstream type queries blind
  • 2 size methods (Map, StringMap) returned raw i32 instead of converting to double via sitofp — inconsistent with SetGenerator.generateSetSize which already did the conversion correctly
  • All 8 methods now properly call setVariableType(result, "double")

Test plan

  • 444/444 node tests pass
  • 444/444 native tests pass
  • Self-hosting chain passes (--quick)

🤖 Generated with Claude Code

cs01 and others added 2 commits March 9, 2026 17:34
…hods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cs01 cs01 merged commit 5742acb into main Mar 10, 2026
12 checks passed
@cs01 cs01 deleted the fix/map-set-return-type-propagation branch March 12, 2026 05: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