Skip to content

fix(ext/node): use primordials in internal_binding/symbols.ts - #33865

Merged
bartlomieju merged 1 commit into
denoland:mainfrom
Crystora:fix-node-primordials-internal-binding-symbols
May 14, 2026
Merged

bartlomieju merged 1 commit into
denoland:mainfrom
Crystora:fix-node-primordials-internal-binding-symbols

Conversation

@Crystora

@Crystora Crystora commented May 5, 2026

Copy link
Copy Markdown
Contributor

Uses primordials in ext/node/polyfills/internal_binding/symbols.ts.

Towards #24236

@CLAassistant

CLAassistant commented May 5, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@fibibot fibibot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny clean primordials migration toward #24236. The IIFE wrapper was already in place; this just adds const { primordials } = globalThis.__bootstrap; const { Symbol } = primordials; and drops the file-level // deno-lint-ignore-file prefer-primordials + TODO. Both Symbol("asyncIdSymbol") and Symbol("ownerSymbol") now use the frozen primordial Symbol instead of the globally-mutable one — same pattern as other primordials-migrated files in ext/node/polyfills/.

No runtime behavior change; the symbols still get fresh unique symbol identities at first script load. Substance LGTM.

Holding APPROVE pending CI — only license/cla and lint title have reported so far, the substantive shards (build/lint/specs/unit/node_compat) haven't started yet. Will re-confirm and clear once they land green. Should be a no-op for this size of change.

@Crystora

Crystora commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

Hi @bartlomieju Sorry for ping. could you please review this PR? welcome to any feedback. Thanks

@lunadogbot lunadogbot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches the pattern in ext/node/polyfills/repl.ts:8 and the IIFE-scoped destructuring used in sibling files like internal_binding/tty_wrap.ts. The two Symbol(...) call sites now resolve to the primordial inside the IIFE, and removing the file-level // deno-lint-ignore-file prefer-primordials + TODO is the correct cleanup. CI green.

  • nit: title prefix fix is a slight stretch for a primordials migration — refactor or chore fits #24236 better. lint-title passed, so not a blocker.

@lunadogbot

Copy link
Copy Markdown
Contributor

@bartlomieju this is ready to merge

@bartlomieju
bartlomieju enabled auto-merge (squash) May 14, 2026 15:00
@bartlomieju
bartlomieju merged commit 36e0b28 into denoland:main May 14, 2026
136 checks passed
littledivy pushed a commit to crowlKats/deno that referenced this pull request Jun 10, 2026
…nd#33865)

Uses primordials in `ext/node/polyfills/internal_binding/symbols.ts`.

Towards denoland#24236
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.

5 participants