Skip to content

docs(design): full TLA semantics under strictExecutionOrder#9575

Draft
hyf0 wants to merge 2 commits into
mainfrom
monsoon-ristra
Draft

docs(design): full TLA semantics under strictExecutionOrder#9575
hyf0 wants to merge 2 commits into
mainfrom
monsoon-ristra

Conversation

@hyf0

@hyf0 hyf0 commented May 26, 2026

Copy link
Copy Markdown
Member

Summary

Design document for supporting full TLA (Top-Level Await) semantics under strictExecutionOrder mode.

  • Analyzes ECMAScript spec's TLA evaluation algorithm (InnerModuleEvaluation, AsyncModuleExecutionFulfilled, GatherAvailableAncestors)
  • Proposes four-state __esmMinAsync / __esmAsync runtime helpers to fix async init cycle deadlock ([Bug]: strict execution order output creates unresolved async init cycle with TLA #9548)
  • Proposes Promise.all concurrent init call grouping to fix sequential loading of independent async deps
  • Compares with webpack's queue-based approach (__webpack_require__.a)
  • Documents known deviations from spec (extra microtask ticks, no [[CycleRoot]])
  • Maps all implementation change points (5 call sites, exact file paths and line numbers)

Reviewed through 4 rounds of automated correctness review.

Closes #9548

Test plan

  • Design review
  • Implementation PR to follow

🤖 Generated with Claude Code

…tionOrder

Analyzes the ECMAScript spec's TLA evaluation algorithm and proposes a
four-state `__esmMinAsync` runtime helper + `Promise.all` concurrent
init calls to fix #9548 (async init cycle deadlock) and sequential
loading of independent async deps.

Includes comparison with webpack's queue-based approach and documents
known deviations from spec.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented May 26, 2026

Copy link
Copy Markdown

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 0ffd875
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a15cef40f4933000842bd96
😎 Deploy Preview https://deploy-preview-9575--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented May 26, 2026

Copy link
Copy Markdown

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 2fbbf11
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a15cf35a022180008fce1a5
😎 Deploy Preview https://deploy-preview-9575--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

[Bug]: strict execution order output creates unresolved async init cycle with TLA

2 participants