Skip to content

lib,tools: avoid defining Symbol.[Async]Dispose functions as direct aliases - #67582

Open
LiviaMedeiros wants to merge 2 commits into
nodejs:mainfrom
LiviaMedeiros:lib-erm-wrappers
Open

LiviaMedeiros wants to merge 2 commits into
nodejs:mainfrom
LiviaMedeiros:lib-erm-wrappers

Conversation

@LiviaMedeiros

@LiviaMedeiros LiviaMedeiros commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

This PR replaces SymbolDispose aliases with thin wrapper functions for better stacktraces and adds linter rule for these.

Refs: https://github.com/nodejs/node/blob/HEAD/doc/contributing/erm-guidelines.md#debuggability-of-disposer-methods

Signed-off-by: LiviaMedeiros <livia@cirno.name>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. vfs Issues and PRs related to the virtual filesystem subsystem. labels Nov 18, 2026
@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.71%. Comparing base (1fb0cd6) to head (ab6823f).
⚠️ Report is 155 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/vfs/file_handle.js 75.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main   #67582    +/-   ##
========================================
  Coverage   90.70%   90.71%            
========================================
  Files         801      801            
  Lines      280712   280801    +89     
  Branches    54174    54208    +34     
========================================
+ Hits       254633   254739   +106     
+ Misses      16261    16247    -14     
+ Partials     9818     9815     -3     
Files with missing lines Coverage Δ
lib/internal/modules/customization_hooks.js 100.00% <100.00%> (ø)
lib/internal/vfs/providers/ziparchive.js 96.84% <100.00%> (+0.01%) ⬆️
lib/internal/vfs/file_handle.js 99.26% <75.00%> (-0.25%) ⬇️

... and 35 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: LiviaMedeiros <livia@cirno.name>
@LiviaMedeiros LiviaMedeiros added the commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. label Nov 18, 2026
@jasnell jasnell added request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. author ready PRs with CI started, the required approvals, and no outstanding review comments. labels Nov 22, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 22, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. vfs Issues and PRs related to the virtual filesystem subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants