Skip to content

fix: preserve registered symbols with empty identifiers - #363

Open
LucasLeao18 wants to merge 1 commit into
ravionhq:mainfrom
LucasLeao18:fix/empty-symbol-identifiers
Open

LucasLeao18 wants to merge 1 commit into
ravionhq:mainfrom
LucasLeao18:fix/empty-symbol-identifiers

Conversation

@LucasLeao18

@LucasLeao18 LucasLeao18 commented Oct 20, 2026 •

Copy link
Copy Markdown
  • In merge queue
  • Prioritize

Registering Symbol() or Symbol('') generates an empty identifier. Truthiness checks then treat the symbol as unregistered, so stringify/parse drops it, and a subsequent registration can replace its existing identifier.

Check for undefined explicitly in the transformation rule and registry. Cover nested and root round-trips and repeated registration.

Validation (Node.js 24.15.0, Windows): The added round-trip regression fails before the fix. npm test -- --threads=false: 87 passing, 1 skipped, 1 todo; npm run build passes.

AI assistance: this contribution was prepared with OpenAI Codex; the change and regression results were reviewed before submission.

@LucasLeao18
LucasLeao18 requested a review from Skn0tt as a code owner October 20, 2026 19:59
@greptile-apps

greptile-apps Bot commented Oct 20, 2026

Copy link
Copy Markdown

This PR does not match any of the 1 configured review trigger rule.

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