Skip to content

refactor: inline byStart/byEnd Map initialization into defineProperties - #314

Open
btea wants to merge 1 commit into
Rich-Harris:masterfrom
btea:refactor/inline-bystart-byend-init
Open

refactor: inline byStart/byEnd Map initialization into defineProperties#314
btea wants to merge 1 commit into
Rich-Harris:masterfrom
btea:refactor/inline-bystart-byend-init

Conversation

@btea

@btea btea commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Move the initialization of byStart and byEnd Maps directly into Object.defineProperties as initial values, instead of first setting them to empty objects {} and then reassigning in the constructor body. This is functionally equivalent but avoids the redundant intermediate assignment. cc @43081j

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.

2 participants