X Tutup
The Wayback Machine - https://web.archive.org/web/20250814212405/https://github.com/nodejs/node/pull/58976
Skip to content

lib: add type names in source mapped stack traces #58976

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

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

legendecas
Copy link
Member

The type name is determined by the constructor name of the receiver in a
call site.

@legendecas legendecas force-pushed the source-maps/type-name branch from 5ed51ea to a0f517b Compare July 7, 2025 19:33
Copy link

codecov bot commented Jul 7, 2025

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.99%. Comparing base (5ebfb99) to head (119018c).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/source_map/prepare_stack_trace.js 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #58976      +/-   ##
==========================================
+ Coverage   89.97%   89.99%   +0.02%     
==========================================
  Files         649      649              
  Lines      192194   192189       -5     
  Branches    37678    37678              
==========================================
+ Hits       172918   172956      +38     
+ Misses      11873    11825      -48     
- Partials     7403     7408       +5     
Files with missing lines Coverage Δ
lib/internal/source_map/prepare_stack_trace.js 95.88% <75.00%> (+0.32%) ⬆️

... and 43 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.

@legendecas legendecas added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. source maps Issues and PRs related to source map support. labels Jul 8, 2025
@nodejs-github-bot

This comment was marked as outdated.

Copy link
Member

@joyeecheung joyeecheung left a comment

Choose a reason for hiding this comment

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

LGTM % a nit: aren't the tests going through source maps by using console.trace instead of throwing now? They still have the word throw in the file names despite not throwing anywhere.

The type name is determined by the constructor name of the receiver in a
call site.
@legendecas legendecas force-pushed the source-maps/type-name branch from a0f517b to 119018c Compare August 1, 2025 13:35
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

@legendecas legendecas added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 1, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 1, 2025
@nodejs-github-bot nodejs-github-bot merged commit f33e0fc into nodejs:main Aug 1, 2025
56 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in f33e0fc

@legendecas legendecas deleted the source-maps/type-name branch August 1, 2025 17:18
meteorqz6 pushed a commit to meteorqz6/node that referenced this pull request Aug 2, 2025
The type name is determined by the constructor name of the receiver in a
call site.

PR-URL: nodejs#58976
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
panva pushed a commit to panva/node that referenced this pull request Aug 7, 2025
The type name is determined by the constructor name of the receiver in a
call site.

PR-URL: nodejs#58976
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Aug 8, 2025
The type name is determined by the constructor name of the receiver in a
call site.

PR-URL: #58976
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
mete0rfish pushed a commit to mete0rfish/node-contribute that referenced this pull request Aug 9, 2025
The type name is determined by the constructor name of the receiver in a
call site.

PR-URL: nodejs#58976
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
panva pushed a commit to panva/node that referenced this pull request Aug 9, 2025
The type name is determined by the constructor name of the receiver in a
call site.

PR-URL: nodejs#58976
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 12, 2025
The type name is determined by the constructor name of the receiver in a
call site.

PR-URL: #58976
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. source maps Issues and PRs related to source map support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
X Tutup