Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix collisions with existing private names #13

Merged
merged 1 commit into from
Jan 15, 2024
Merged

fix collisions with existing private names #13

merged 1 commit into from
Jan 15, 2024

Conversation

ef4
Copy link
Owner

@ef4 ef4 commented Jan 15, 2024

The collision detection for existing private names wasn't being tested property and didn't actually work correctly. This adds test coverage and fixes two bugs.

  • babel is giving us names with the # already stripped
  • the stack of current class bodies was pairing unshift with pop instead of unshift with shift.

The collision detection for existing private names wasn't being tested property and didn't actually work correctly. This adds test coverage and fixes two bugs.
 - babel is giving us names with the `#` already stripped
 - the stack of current class bodies was pairing `unshift` with `pop` instead of `unshift` with `shift`.
@ef4 ef4 merged commit 1154749 into main Jan 15, 2024
2 checks passed
@ef4 ef4 added the bug Something isn't working label Jan 15, 2024
@ef4 ef4 deleted the collisions branch January 15, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant