Skip to content

[TS] Dispatch Set constructors by their declared owner - #642

Draft
CaelmBleidd wants to merge 2 commits into
caelmbleidd/calls-node20-frontend-pinfrom
caelmbleidd/ts-native-set-constructor-dispatch
Draft

CaelmBleidd wants to merge 2 commits into
caelmbleidd/calls-node20-frontend-pinfrom
caelmbleidd/ts-native-set-constructor-dispatch

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Resolve Set allocations and constructor calls by their actual IR owner. This lets the native collection model handle the default-library binding while preserving same-named local and imported classes. Legacy owner-less calls retain the existing native model only when there is no project Set namesake.

The frontend pin is JacoDB #456 at 6127cd5370ed42886ca49ab9addb62ed72dd1a57, which includes the Set binding from #451 and explicit boundaries for direct replacement, replacement through declared globalThis aliases, and known reflective mutations. The target is #633, which already selects the collection source models and its frontend dependency snapshot.

Four source-level regressions and both Detekt tasks passed locally using the published artifact. The tests check native, local and imported bindings and require the three replacement cases to stop at the mutation. Node confirms the concrete result of each replaced constructor and restores the original binding between checks.

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