Skip to content

Conversation

@Ayoub-Mabrouk
Copy link

Reduced redundant typeof operations by caching type checks
and simplified the string length calculation using ternary
operators for improved readability.

Reduced redundant typeof operations by caching type checks
and simplified the string length calculation using ternary
operators for improved readability.
@nodejs-github-bot nodejs-github-bot added assert Issues and PRs related to the assert subsystem. needs-ci PRs that need a full CI run. labels Oct 21, 2025
Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

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

The calls will likely be inlined during optimization passes in the jit. I am fine with it either way.

@BridgeAR BridgeAR added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 21, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 21, 2025
@nodejs-github-bot
Copy link
Collaborator

@codecov
Copy link

codecov bot commented Oct 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.56%. Comparing base (2fb82c8) to head (54e8e83).
⚠️ Report is 37 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60331      +/-   ##
==========================================
- Coverage   88.59%   88.56%   -0.03%     
==========================================
  Files         704      704              
  Lines      208474   207800     -674     
  Branches    40067    40035      -32     
==========================================
- Hits       184696   184045     -651     
- Misses      15805    15806       +1     
+ Partials     7973     7949      -24     
Files with missing lines Coverage Δ
lib/internal/assert/assertion_error.js 95.88% <100.00%> (-0.05%) ⬇️

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

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

Labels

assert Issues and PRs related to the assert subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants