Repository navigation
fix(ext/node): use primordials in internal_binding/symbols.ts - #33865
bartlomieju merged 1 commit into
Conversation
fibibot
left a comment
There was a problem hiding this comment.
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.
|
Hi @bartlomieju Sorry for ping. could you please review this PR? welcome to any feedback. Thanks |
lunadogbot
left a comment
There was a problem hiding this comment.
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
fixis a slight stretch for a primordials migration —refactororchorefits #24236 better. lint-title passed, so not a blocker.
|
@bartlomieju this is ready to merge |
…nd#33865) Uses primordials in `ext/node/polyfills/internal_binding/symbols.ts`. Towards denoland#24236
Uses primordials in
ext/node/polyfills/internal_binding/symbols.ts.Towards #24236