Skip to content

refactor: decompose method-calls.ts — extract map/set/urlsearchparams dispatch#213

Merged
cs01 merged 2 commits intomainfrom
refactor/decompose-method-calls
Mar 11, 2026
Merged

refactor: decompose method-calls.ts — extract map/set/urlsearchparams dispatch#213
cs01 merged 2 commits intomainfrom
refactor/decompose-method-calls

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 11, 2026

Summary

  • Extracts ~490 lines of map, set, and URLSearchParams dispatch logic from method-calls.ts into 3 focused sub-modules
  • method-calls.ts reduced from 1253 to 763 lines
  • New files: map-dispatch.ts (277 lines), set-dispatch.ts (107 lines), urlsearchparams-dispatch.ts (73 lines)
  • No behavioral changes — pure refactor with identical codegen output

Test plan

  • npm run verify:quick passes (tests + Stage 0 + Stage 1 self-hosting)
  • All map/set/urlsearchparams tests pass with both node and native compiler

@cs01 cs01 merged commit 99b4f8f into main Mar 11, 2026
12 checks passed
@cs01 cs01 deleted the refactor/decompose-method-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