Skip to content

Run module initializers that only ++ and -- read - #944

Merged
ctate merged 1 commit into
mainfrom
ctate/run-module-initializers-ca71b0
Oct 13, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/run-module-initializers-ca71b0

Conversation

@ctate

@ctate ctate commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator
  • Top-level bindings whose only later use is n++, --n and the like kept their zero value, because the deferred-initializer scan ignored updates; it now treats updates as reads.
  • Covers update, compound, logical and destructuring forms across functions, closures, classes, var and module exports.
  • bench:runtime neutral (workload code is unchanged).

@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Oct 13, 2026 10:23pm UTC

@ctate
ctate merged commit b9cb5e1 into main Oct 13, 2026
90 checks passed
@ctate
ctate deleted the ctate/run-module-initializers-ca71b0 branch October 13, 2026 23:03

This branch was successfully deployed

1 active deployment
Preview — f6c3d030 Deployed Oct 13, 2026 by vercel[bot]
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