Skip to content

[TS] Preserve hoisted mutable named function bindings - #430

Merged
CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ets-named-function-bindings
Oct 10, 2026
Merged

CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ets-named-function-bindings

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Named scope functions now have one hoisted mutable binding, so aliases retain the selected function and later calls observe reassignment. Calls and template tags select their callee before argument/substitution side effects; original body ownership and property receivers are preserved.

The delivery is rebased onto the complete lowering stack in neo. It also adapts tagged-template lowering to the live binding and adds a native/serialized-IR regression for reassignment during a substitution.

Validation: independent core and hygiene review of the exact combined tree; fresh frontend build and 635 passing tests. The combined ETS suite passed 233 tests with one inherited Demo_Calc project fixture skip (EtsFromJsonTest.testLoadEtsProject); the for-await fixture corrections were delivered separately in #421/#422. Normal license hook passed. A fresh complete ETS run on this tree plus the unchanged #427 process fix passed 235 tests with one inherited Demo_Calc project fixture skip (EtsFromJsonTest.testLoadEtsProject). Final integrated checks are recorded separately from original-head CI.

Boundary: direct imported namespace property calls/tags remain explicitly unsupported because their module receiver is not represented. Frontend/JSON correctness does not establish downstream USVM execution support or update its dependency pin.

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

  225 files  ±0    225 suites  ±0   14m 37s ⏱️ -6s
  799 tests ±0    787 ✅ ±0  12 💤 ±0  0 ❌ ±0 
2 069 runs  ±0  2 019 ✅ ±0  50 💤 ±0  0 ❌ ±0 

Results for commit c0a8f51. ± Comparison against base commit 454433c.

♻️ This comment has been updated with latest results.

Select template tags from the live binding before substitutions and preserve receivers, reference order, and iterator-close regressions.
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ets-named-function-bindings branch from c0a8f51 to cffa932 Compare October 10, 2026 17:43
@CaelmBleidd
CaelmBleidd marked this pull request as ready for review October 10, 2026 17:49
@CaelmBleidd
CaelmBleidd merged commit 461ad96 into neo Oct 10, 2026
1 of 5 checks passed
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