Skip to content

fix: add missing setVariableType calls and remove remaining fast-math flags (#264)#264

Merged
cs01 merged 1 commit intomainfrom
fix/missing-setVariableType-calls
Mar 12, 2026
Merged

fix: add missing setVariableType calls and remove remaining fast-math flags (#264)#264
cs01 merged 1 commit intomainfrom
fix/missing-setVariableType-calls

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 12, 2026

Summary

  • Add missing setVariableType(result, "double") after fneg (negation), fadd (post-increment), fdiv (process.uptime, console.timeEnd) — prevents downstream type inference failures
  • Replace remaining fadd fast/fdiv fast/frem fast with safe flags nsz arcp contract reassoc afn in unary.ts, date.ts, member.ts, binary.ts (modulo) — PR fix: remove nnan/ninf fast-math flags from arithmetic to fix nan propagation (#263) #263 only fixed the arithmetic map in binary.ts, these were missed

Test plan

  • npm run verify:quick passes (tests + Stage 1 self-hosting)
  • No functional change to output — just type tracking + flag consistency

🤖 Generated with Claude Code

@cs01 cs01 merged commit f818315 into main Mar 12, 2026
12 checks passed
@cs01 cs01 deleted the fix/missing-setVariableType-calls 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